[issue12757] undefined name in doctest.py
Michele Orrù
report at bugs.python.org
Thu Aug 18 17:25:19 CEST 2011
Michele Orrù <maker.py at gmail.com> added the comment:
It is possible to retrieve the current module using _normalize_module(None), or instead use the test name (dt_test.name) just like in DocTestCase.shortDescription.
Since there is no doc about it, IMHO we should use unittest's standard as guideline, which is:
shortDescription()
Returns a description of the test, or None if no description has been
provided. The default implementation of this method returns the first
line of the test method’s docstring, if available, or None.
(i.e., DocTestCase._dt_test.name)
What's your opinion?
----------
nosy: +maker
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12757>
_______________________________________
More information about the Python-bugs-list
mailing list