[issue2604] doctest.DocTestCase fails when run repeatedly
Piet Delport
report at bugs.python.org
Fri Apr 11 10:00:03 CEST 2008
Piet Delport <pjdelport at gmail.com> added the comment:
> If any of the variables in test.globs are changed by the test (e.g.
appending to a list), then rerunning the test will not necessarily give
the same result.
This is true, but modifying the globals such that subsequent runs of the
same test can break equally affects subsequent runs of any other tests
that use that module: such a test is already broken (unsafe to run with
other tests) to begin with, independent of the DocTestCase.tearDown issue.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2604>
__________________________________
More information about the Python-bugs-list
mailing list