test
Simon Brunning
simon.brunning at gmail.com
Wed Jun 8 07:55:11 EDT 2005
On 6/8/05, Nader Emami <emami at knmi.nl> 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,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/
More information about the Python-list
mailing list