From: Serhiy Storchaka Date: Wed, 12 Feb 2014 10:40:22 +0000 (+0200) Subject: Try to fix test_cleanup (issue #20599). X-Git-Tag: v3.4.0rc3~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f86b43382311370d099b1ba9995093a2e0252605;p=thirdparty%2FPython%2Fcpython.git Try to fix test_cleanup (issue #20599). --- diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index c078b443c5b5..8a307b976a82 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -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