mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
a much cleaner fix from Antoine
This commit is contained in:
parent
f63e343c39
commit
fbf66bd617
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue