]> granicus.if.org Git - python/commitdiff
Try to fix test_cleanup (issue #20599).
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 12 Feb 2014 10:40:22 +0000 (12:40 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 12 Feb 2014 10:40:22 +0000 (12:40 +0200)
Lib/test/test_builtin.py

index c078b443c5b5850bf0b919bb3c59413217fa8ad4..8a307b976a82a834e7faa7580ed2bb2f4ea64c54 100644 (file)
@@ -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