Try to fix test_cleanup (issue #20599).

This commit is contained in:
Serhiy Storchaka 2014-02-12 12:40:22 +02:00
parent 5bdfc51950
commit 76a6326068
1 changed files with 2 additions and 2 deletions

View File

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