[New-bugs-announce] [issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

Chris Jerdonek report at bugs.python.org
Tue Sep 11 01:54:55 CEST 2012


New submission from Chris Jerdonek:

Currently, calling doctest.DocTestSuite() raises a ValueError if the module passed to it has no docstrings.  This was the subject of issue 14649.

This issue is to discuss and possibly change DocTestSuite's behavior not to raise an exception in that situation.

In the discussion for issue 14649 (in particular with R. David Murray), it was acknowledged that the current behavior probably isn't correct or desirable.  However, treating the behavior as a bug and fixing it in maintenance branches would have been too big of a change.

Thus, if this change is made, it could be slated for the next feature release.

----------
components: Library (Lib)
keywords: easy
messages: 170250
nosy: asvetlov, cjerdonek, r.david.murray
priority: normal
severity: normal
status: open
title: change doctest DocTestSuite not to raise ValueError if no docstrings
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15916>
_______________________________________


More information about the New-bugs-announce mailing list