From: Georg Brandl Date: Mon, 12 May 2008 17:01:58 +0000 (+0000) Subject: #2766: remove code without effect. X-Git-Tag: v2.6b1~456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45141d00575fc6c27d9b794f444e5507ddac96d6;p=python #2766: remove code without effect. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 9fae81eaad..c5b0f4edf4 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -2268,8 +2268,6 @@ def DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, module = _normalize_module(module) tests = test_finder.find(module, globs=globs, extraglobs=extraglobs) - if globs is None: - globs = module.__dict__ if not tests: # Why do we want to do this? Because it reveals a bug that might # otherwise be hidden.