]> granicus.if.org Git - python/commitdiff
#2767: don't clear globs in run() call, since they could be needed in tearDown,
authorGeorg Brandl <georg@python.org>
Mon, 12 May 2008 17:04:10 +0000 (17:04 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 12 May 2008 17:04:10 +0000 (17:04 +0000)
which clears them at the end.

Lib/doctest.py

index c5b0f4edf4e2845b3371ab2132108ee9a6e0be50..8806d6e7f84d89a1739e835d2429c6e847af380a 100644 (file)
@@ -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):