diff options
author | Georg Brandl <georg@python.org> | 2012-06-24 17:29:49 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-06-24 17:29:49 (GMT) |
commit | 19c4e5bb391c805281288f1febc4dec12a365c86 (patch) | |
tree | 860ea6a8b50fbc85609cbe60c063450c495d7dea /Lib/test/test__locale.py | |
parent | 318c56c0016fbc0d1825a90f773f0e2cdf3c1e5a (diff) | |
parent | 988049ad9764b60b336a47f5d101c3f8cfee218f (diff) | |
download | cpython-19c4e5bb391c805281288f1febc4dec12a365c86.zip cpython-19c4e5bb391c805281288f1febc4dec12a365c86.tar.gz cpython-19c4e5bb391c805281288f1febc4dec12a365c86.tar.bz2 |
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).
Diffstat (limited to 'Lib/test/test__locale.py')
-rw-r--r-- | Lib/test/test__locale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index dab1565..f7f1abd 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -12,7 +12,7 @@ from platform import uname from test.support import run_unittest if uname()[0] == "Darwin": - maj, min, mic = [int(part) for part in uname().release.split(".")] + maj, min, mic = [int(part) for part in uname()[2].split(".")] if (maj, min, mic) < (8, 0, 0): raise unittest.SkipTest("locale support broken for OS X < 10.4") |