Message159022
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'. |
|
Date |
User |
Action |
Args |
2012-04-23 14:54:21 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
2012-04-23 14:54:21 | chris.jerdonek | set | messageid: <1335192861.9.0.305748973415.issue14649@psf.upfronthosting.co.za> |
2012-04-23 14:54:21 | chris.jerdonek | link | issue14649 messages |
2012-04-23 14:54:21 | chris.jerdonek | create | |
|