mirror of
https://github.com/python/cpython.git
synced 2025-09-13 04:08:37 +00:00
Make uuid test suite pass on this box by requesting output with LC_ALL=C.
This commit is contained in:
parent
6cea7d74ad
commit
75a832d4e7
2 changed files with 10 additions and 3 deletions
|
@ -276,7 +276,10 @@ def _ifconfig_getnode():
|
|||
import os
|
||||
for dir in ['', '/sbin/', '/usr/sbin']:
|
||||
try:
|
||||
pipe = os.popen(os.path.join(dir, 'ifconfig'))
|
||||
# LC_ALL to get English output, 2>/dev/null to
|
||||
# prevent output on stderr
|
||||
cmd = 'LC_ALL=C %s 2>/dev/null' % os.path.join(dir, 'ifconfig')
|
||||
pipe = os.popen(cmd)
|
||||
except IOError:
|
||||
continue
|
||||
for line in pipe:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue