]> granicus.if.org Git - python/commitdiff
#2766: remove code without effect.
authorGeorg Brandl <georg@python.org>
Mon, 12 May 2008 17:01:58 +0000 (17:01 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 12 May 2008 17:01:58 +0000 (17:01 +0000)
Lib/doctest.py

index 9fae81eaad8d97ddd702e97475ccf5680fcf0754..c5b0f4edf4e2845b3371ab2132108ee9a6e0be50 100644 (file)
@@ -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.