Try to fix test_cleanup (issue #20599).
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index c078b44..8a307b9 100644
--- 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