We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64fa604 + de6c2ac commit 4d7e3cdCopy full SHA for 4d7e3cd
1 file changed
test/core_wrapper_features_unittest.py
@@ -387,6 +387,19 @@ def test_default_constructor_DEFINE_STANDARD_ALLOC(self):
387
TopoDS_Builder()
388
ShapeAnalysis_Curve()
389
390
+ def test_handling_exceptions(self):
391
+ """ asserts that handling of OCC exceptions is handled correctly in pythonocc
392
+
393
+ See Also
394
+ --------
395
396
+ issue #259 -- Standard errors like Standard_OutOfRange not caught
397
398
+ """
399
+ d = gp_Dir(0,0,1)
400
+ with self.assertRaises(RuntimeError):
401
+ d.Coord(-1) # Standard_OutOfRange
402
403
404
def suite():
405
test_suite = unittest.TestSuite()
0 commit comments