Commit af37b009 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Try to fix test_cleanup (issue #20599).

parent c1125bfa
...@@ -1604,10 +1604,10 @@ class ShutdownTest(unittest.TestCase): ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment