projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63e343
)
a much cleaner fix from Antoine
author
Benjamin Peterson
<benjamin@python.org>
Tue, 29 Jul 2008 15:55:50 +0000
(15:55 +0000)
committer
Benjamin Peterson
<benjamin@python.org>
Tue, 29 Jul 2008 15:55:50 +0000
(15:55 +0000)
Lib/doctest.py
patch
|
blob
|
history
diff --git
a/Lib/doctest.py
b/Lib/doctest.py
index e2b595ea51fb89aa708480a1dff6d35254099987..e8babd2c8f269b17105de390c4761a3ea7f91fd4 100644
(file)
--- a/
Lib/doctest.py
+++ b/
Lib/doctest.py
@@
-1360,10
+1360,8
@@
class DocTestRunner:
linecache.getlines = self.save_linecache_getlines
if clear_globs:
test.globs.clear()
- if __name__ == "__main__":
- __builtins__._ = None
- else:
- __builtins__['_'] = None
+ import builtins
+ builtins._ = None
#/////////////////////////////////////////////////////////////////
# Summarization