http://docs.python.org/library/doctest.htmlの例のdoctestを使用しようとしています
しかし、私が走るとき
python example.py -v
私はこれを手に入れます
Traceback (most recent call last):
File "example.py", line 61, in <module>
doctest.testmod()
AttributeError: 'module' object has no attribute 'testmod'
しかし、Pythonインタラクティブシェルにdoctestをインポートして、doctest.testmod()を使用できるようにすることもできます。グーグルで検索しましたが、解決策が見つかりませんでした。
PythonのバージョンはMaxOSXで2.5.1です