summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index c5b0f4edf4..8806d6e7f8 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):