diff options
author | Georg Brandl <georg@python.org> | 2006-07-27 16:08:15 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-07-27 16:08:15 +0000 |
commit | 75a832d4e776ae6ee4aca1443cd595420b551b47 (patch) | |
tree | 261078333f151b5b672b23a95da6b0c8c169341c /Lib/uuid.py | |
parent | 6cea7d74ade5934e4bea810d37f2906498b6a1d9 (diff) | |
download | cpython-git-75a832d4e776ae6ee4aca1443cd595420b551b47.tar.gz |
Make uuid test suite pass on this box by requesting output with LC_ALL=C.
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r-- | Lib/uuid.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py index 3b590e84d5..11e0da3c9b 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -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: |