summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-12 17:04:10 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-12 17:04:10 (GMT)
commit1b4758d2769858c75c6ef301ba995272a0a314f3 (patch)
treea99c8e81bbe312223cc40b95af8daea58d9d4d66
parent45141d00575fc6c27d9b794f444e5507ddac96d6 (diff)
downloadcpython-1b4758d2769858c75c6ef301ba995272a0a314f3.zip
cpython-1b4758d2769858c75c6ef301ba995272a0a314f3.tar.gz
cpython-1b4758d2769858c75c6ef301ba995272a0a314f3.tar.bz2
#2767: don't clear globs in run() call, since they could be needed in tearDown,
which clears them at the end.
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index c5b0f4e..8806d6e 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):