Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git]
/
src
/
PythonAPI
/
Test
/
TestSketcherSetLength.py
diff --git
a/src/PythonAPI/Test/TestSketcherSetLength.py
b/src/PythonAPI/Test/TestSketcherSetLength.py
index 233f677b540dce73716dce29eb9c7b270af97f7c..5230bd64a4518490d7691562dbef0189a8a21e4f 100644
(file)
--- a/
src/PythonAPI/Test/TestSketcherSetLength.py
+++ b/
src/PythonAPI/Test/TestSketcherSetLength.py
@@
-39,4
+39,5
@@
class SketcherSetLength(SketcherTestCase):
self.assertAlmostEqual(length, 25.0, delta=TestSketcher.DELTA)
if __name__ == "__main__":
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