From: Georg Brandl Date: Mon, 12 May 2008 17:04:10 +0000 (+0000) Subject: #2767: don't clear globs in run() call, since they could be needed in tearDown, X-Git-Tag: v2.6b1~455 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b4758d2769858c75c6ef301ba995272a0a314f3;p=thirdparty%2FPython%2Fcpython.git #2767: don't clear globs in run() call, since they could be needed in tearDown, which clears them at the end. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index c5b0f4edf4e2..8806d6e7f84d 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -2211,7 +2211,7 @@ class DocTestCase(unittest.TestCase): self.setUp() runner = DebugRunner(optionflags=self._dt_optionflags, checker=self._dt_checker, verbose=False) - runner.run(self._dt_test) + runner.run(self._dt_test, clear_globs=False) self.tearDown() def id(self):