mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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)
This commit is contained in:
parent
e03866f6f1
commit
1e8e5f0680
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue