summaryrefslogtreecommitdiffstats
path: root/Lib/test/test__locale.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-06-24 17:29:49 (GMT)
committerGeorg Brandl <georg@python.org>2012-06-24 17:29:49 (GMT)
commit19c4e5bb391c805281288f1febc4dec12a365c86 (patch)
tree860ea6a8b50fbc85609cbe60c063450c495d7dea /Lib/test/test__locale.py
parent318c56c0016fbc0d1825a90f773f0e2cdf3c1e5a (diff)
parent988049ad9764b60b336a47f5d101c3f8cfee218f (diff)
downloadcpython-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.py2
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")