mirror of https://github.com/python/cpython.git
a much cleaner fix from Antoine
This commit is contained in:
parent
f63e343c39
commit
fbf66bd617
|
@ -1360,10 +1360,8 @@ def run(self, test, compileflags=None, out=None, clear_globs=True):
|
|||
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…
Reference in New Issue