[Python-checkins] r63173 - python/trunk/Lib/doctest.py

georg.brandl python-checkins at python.org
Mon May 12 19:01:59 CEST 2008


Author: georg.brandl
Date: Mon May 12 19:01:58 2008
New Revision: 63173

Log:
#2766: remove code without effect.


Modified:
   python/trunk/Lib/doctest.py

Modified: python/trunk/Lib/doctest.py
==============================================================================
--- python/trunk/Lib/doctest.py	(original)
+++ python/trunk/Lib/doctest.py	Mon May 12 19:01:58 2008
@@ -2268,8 +2268,6 @@
 
     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.


More information about the Python-checkins mailing list