diff options
| author | Georg Brandl <georg@python.org> | 2008-05-12 17:01:58 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-05-12 17:01:58 (GMT) |
| commit | 45141d00575fc6c27d9b794f444e5507ddac96d6 (patch) | |
| tree | 3797e4b81435a41976c15b09f15ea0142fc3a89f /Lib | |
| parent | 21f990cf0eea5c4fbab75d53ffd542eaaaa08477 (diff) | |
| download | cpython-45141d00575fc6c27d9b794f444e5507ddac96d6.zip cpython-45141d00575fc6c27d9b794f444e5507ddac96d6.tar.gz cpython-45141d00575fc6c27d9b794f444e5507ddac96d6.tar.bz2 | |
#2766: remove code without effect.
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/doctest.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 9fae81e..c5b0f4e 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. |
