Skip to content

Commit 6859c52

Browse files
committed
(PyKDL)(test) move execution to __main__
1 parent d2c2307 commit 6859c52

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

python_orocos_kdl/tests/PyKDLtest.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
import jointtypetest
4040
suite.addTest(jointtypetest.suite())
4141

42-
result = unittest.TextTestRunner(verbosity=3).run(suite)
42+
if __name__ == "__main__":
43+
result = unittest.TextTestRunner(verbosity=3).run(suite)
4344

44-
if result.wasSuccessful():
45-
sys.exit(0)
46-
else:
47-
sys.exit(1)
45+
if result.wasSuccessful():
46+
sys.exit(0)
47+
else:
48+
sys.exit(1)

0 commit comments

Comments
 (0)