From 76a63260685b0778e85f55f60b3bf82c66075e99 Mon Sep 17 00:00:00 2001
From: Serhiy Storchaka <storchaka@gmail.com>
Date: Wed, 12 Feb 2014 12:40:22 +0200
Subject: [PATCH] Try to fix test_cleanup (issue #20599).

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

diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index c078b443c5..8a307b976a 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
-- 
2.49.0