summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_uuid.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-10-30 18:15:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-10-30 18:15:02 (GMT)
commit1e8e5f0680b3014da460008b50bd1663cb1ef310 (patch)
tree89ecca83ac86b5a3e3904b93fede58f922e9e860 /Lib/test/test_uuid.py
parente03866f6f148f6671a1fa56f7f2b2e5697a3d868 (diff)
downloadcpython-1e8e5f0680b3014da460008b50bd1663cb1ef310.zip
cpython-1e8e5f0680b3014da460008b50bd1663cb1ef310.tar.gz
cpython-1e8e5f0680b3014da460008b50bd1663cb1ef310.tar.bz2
Fix a refleak in test_uuid when run with -j.
The "refleak" was simply the effect of internal buffering in block buffering mode (rather than line buffering when sys.stdout is a terminal)
Diffstat (limited to 'Lib/test/test_uuid.py')
-rw-r--r--Lib/test/test_uuid.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index b749abc..b4dd459 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()