I try to use doctest from example from http://docs.python.org/library/doctest.html
But when I run
python example.py -v
I get this
Traceback (most recent call last):
File "example.py", line 61, in <module>
doctest.testmod()
AttributeError: 'module' object has no attribute 'testmod'
But I can import doctest in python interactive shell and enable to use doctest.testmod() as well. I searched in google and didn't find the solution.
Python version is 2.5.1 on Max OSX