Make uuid test suite pass on this box by requesting output with LC_ALL=C.

This commit is contained in:
Georg Brandl 2006-07-27 16:08:15 +00:00
parent 6cea7d74ad
commit 75a832d4e7
2 changed files with 10 additions and 3 deletions

View file

@ -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: