[Python-checkins] cpython: Try to fix test_cleanup (issue #20599).

serhiy.storchaka python-checkins at python.org
Wed Feb 12 11:40:50 CET 2014


http://hg.python.org/cpython/rev/7ecee9e0dc58
changeset:   89170:7ecee9e0dc58
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Feb 12 12:40:22 2014 +0200
summary:
  Try to fix test_cleanup (issue #20599).

files:
  Lib/test/test_builtin.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1604,10 +1604,10 @@
 
             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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list