diff --git a/Lib/doctest.py b/Lib/doctest.py index c5b0f4edf4e..8806d6e7f84 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):