Try to fix test_cleanup (issue #20599).

This commit is contained in:
Serhiy Storchaka 2014-02-12 12:40:22 +02:00
parent 3b4ce690fd
commit f86b433823
1 changed files with 2 additions and 2 deletions

View File

@ -1604,10 +1604,10 @@ class ShutdownTest(unittest.TestCase):
class C:
def __del__(self):
print("before")
print("before", flush=True)
# Check that builtins still exist
len(())
print("after")
print("after", flush=True)
c = C()
# Make this module survive until builtins and sys are cleaned