mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
make sure doctest doesn't pollute __builtins__
This was causing test_builtin to fail after the decimal doctests were run see #3462
This commit is contained in:
parent
e14039cfca
commit
638c722228
1 changed files with 1 additions and 0 deletions
|
@ -1360,6 +1360,7 @@ class DocTestRunner:
|
|||
linecache.getlines = self.save_linecache_getlines
|
||||
if clear_globs:
|
||||
test.globs.clear()
|
||||
__builtins__['_'] = None
|
||||
|
||||
#/////////////////////////////////////////////////////////////////
|
||||
# Summarization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue