[Tutor] Unittest traceback
Oleg Oltar
oltarasenko at gmail.com
Fri Apr 4 10:03:14 CEST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080404/3eafad1c/attachment.htm
More information about the Tutor
mailing list