On 6/8/05, Nader Emami <[EMAIL PROTECTED]> wrote: > L.S., > > I would like to learn how does work the "unit test" concept in Python. I > have try the 'romantest.py' of the "Dive in Python" book and I get the > next problem: > > Traceback (most recent call last): > File "romantest.py", line 153, in ? > unittest.main() > File "/usr/lib/python2.3/unittest.py", line 721, in __init__ > self.runTests() > File "/usr/lib/python2.3/unittest.py", line 758, in runTests > result = self.testRunner.run(self.test) > File "/usr/lib/python2.3/unittest.py", line 657, in run > startTime = time.time() > AttributeError: 'module' object has no attribute 'time' > > I can't understand it! Would somebody tell me how I can solve this > problem. Thanks,
Wild guess - have you got a module called time.py of your own somewhere around? -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list