This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek
Date 2012-04-23.14:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335192861.9.0.305748973415.issue14649@psf.upfronthosting.co.za>
In-reply-to
Content
When invoking doctest.DocTestSuite's constructor with a module that has no docstrings, doctest raises the following exception:

...
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/doctest.py", line 2280, in DocTestSuite
    raise ValueError(module, "has no tests")
ValueError: (<module '[snip]' from '[snip]'>, 'has no tests')

The error message is misleading because the exception is not raised for modules that have docstrings but no doctests, only for modules that have no docstrings.

To be accurate, the message should be something like 'has no docstrings'.
History
Date User Action Args
2012-04-23 14:54:21chris.jerdoneksetrecipients: + chris.jerdonek
2012-04-23 14:54:21chris.jerdoneksetmessageid: <1335192861.9.0.305748973415.issue14649@psf.upfronthosting.co.za>
2012-04-23 14:54:21chris.jerdoneklinkissue14649 messages
2012-04-23 14:54:21chris.jerdonekcreate