Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetLength.py
index 233f677b540dce73716dce29eb9c7b270af97f7c..5230bd64a4518490d7691562dbef0189a8a21e4f 100644 (file)
@@ -39,4 +39,5 @@ class SketcherSetLength(SketcherTestCase):
         self.assertAlmostEqual(length, 25.0, delta=TestSketcher.DELTA)
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
\ No newline at end of file
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"
\ No newline at end of file