From 68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6 Mon Sep 17 00:00:00 2001 From: Larry Hastings Date: Sun, 24 Jun 2012 14:30:41 -0700 Subject: Issue #15164: Change return value of platform.uname() from a plain tuple to a collections.namedtuple. --- Lib/test/test__locale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test__locale.py') diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index f7f1abdab2..4231f37bc9 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") -- cgit v1.2.1