diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index b749abce39d672c86253d43b2f0228f9fa02bfee..b4dd459720d3f944726d771eaf3959cb55a436a8 100644
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -314,6 +314,7 @@ class TestUUID(TestCase):
         import sys
         print("""    WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
         It is disabled until the code and/or test can be fixed properly.""", file=sys.__stdout__)
+        sys.__stdout__.flush()
         return
 
         import os
@@ -342,6 +343,7 @@ class TestUUID(TestCase):
         import sys
         print("""    WARNING: uuid._unixdll_getnode is unreliable on many platforms.
         It is disabled until the code and/or test can be fixed properly.""", file=sys.__stdout__)
+        sys.__stdout__.flush()
         return
 
         import os
@@ -357,6 +359,7 @@ class TestUUID(TestCase):
         import sys
         print("""    WARNING: uuid.getnode is unreliable on many platforms.
         It is disabled until the code and/or test can be fixed properly.""", file=sys.__stdout__)
+        sys.__stdout__.flush()
         return
 
         node1 = uuid.getnode()