diff options
author | Larry Hastings <larry@hastings.org> | 2012-06-24 21:30:41 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2012-06-24 21:30:41 (GMT) |
commit | 68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6 (patch) | |
tree | 051c2a77f319435a45f398049806b6fd2e09408b /Lib/test/test__locale.py | |
parent | 56ed2844fa88882a91f9ccf670c0e7a9736eb2a2 (diff) | |
download | cpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.zip cpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.tar.gz cpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.tar.bz2 |
Issue #15164: Change return value of platform.uname() from a
plain tuple to a collections.namedtuple.
Diffstat (limited to 'Lib/test/test__locale.py')
-rw-r--r-- | Lib/test/test__locale.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index f7f1abd..4231f37 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -11,8 +11,8 @@ import unittest from platform import uname from test.support import run_unittest -if uname()[0] == "Darwin": - maj, min, mic = [int(part) for part in uname()[2].split(".")] +if uname().system == "Darwin": + maj, min, mic = [int(part) for part in uname().release.split(".")] if (maj, min, mic) < (8, 0, 0): raise unittest.SkipTest("locale support broken for OS X < 10.4") |