The "refleak" was simply the effect of internal buffering in block buffering mode
(rather than line buffering when sys.stdout is a terminal)
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
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
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()