mirror of https://github.com/python/cpython
Try to fix test_cleanup (issue #20599).
This commit is contained in:
parent
5bdfc51950
commit
76a6326068
|
@ -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