#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 c5b0f4e..8806d6e 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -2211,7 +2211,7 @@
         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):