Hi! I am trying to use unittest in python first time. But have a strange traceback each time I run my sample tests. Can you please explain why I have it. No info about it in the doc. e.g. the code is
import unittest import squaren class TestCases(unittest.TestCase): def setUp(self): pass def testsmall(self): self.assertEqual(True, True) if __name__ == '__main__': unittest.main() And the traceback is ---------------------------------------------------------------------- Ran 1 test in 0.000s OK Traceback (most recent call last): File "/tmp/py359hJx", line 14, in <module> unittest.main() File "/opt/local/lib/python2.5/unittest.py", line 768, in __init__ self.runTests() File "/opt/local/lib/python2.5/unittest.py", line 806, in runTests sys.exit(not result.wasSuccessful()) SystemExit: False
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor