[issue3332] DocTest and dict sort.

Raymond Hettinger report at bugs.python.org
Thu Aug 28 06:44:36 CEST 2014


Raymond Hettinger added the comment:

> doctest should be changed (or have an option) to understand 
> object equality rather than exact text output.

Sorry, but that would be at odds with the fundamental design of doctest which is principally designed to test documentation in the form of docstrings (which, it goes without saying actually *are* strings).

Try using another tool for the job.  The unittest module is well suited for tests that need to understand object equality.

----------

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


More information about the Python-bugs-list mailing list