From 1b4758d2769858c75c6ef301ba995272a0a314f3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 12 May 2008 17:04:10 +0000 Subject: [PATCH] #2767: don't clear globs in run() call, since they could be needed in tearDown, which clears them at the end. --- Lib/doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):