mirror of https://github.com/python/cpython
Try to fix test_cleanup (issue #20599).
This commit is contained in:
parent
3b4ce690fd
commit
f86b433823
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue