[issue2604] doctest.DocTestCase fails when run repeatedly

Piet Delport report at bugs.python.org
Thu Apr 10 05:40:47 CEST 2008


New submission from Piet Delport <pjdelport at gmail.com>:

DocTestCase.tearDown destructively clears its DocTest instance's globs,
preventing the test from being run repeatedly (such as with trial
--until-failure).

There's a fix for this in zope.testing's version of doctest, which
resets the globs instead:

http://svn.zope.org/?view=rev&rev=39023

----------
components: Library (Lib)
messages: 65285
nosy: pjd
severity: normal
status: open
title: doctest.DocTestCase fails when run repeatedly
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2604>
__________________________________


More information about the Python-bugs-list mailing list