Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).

This commit is contained in:
Georg Brandl 2012-06-24 19:29:49 +02:00
commit 19c4e5bb39
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
necessary by the core developers. necessary by the core developers.
.. versionadded:: 3.3 .. versionadded:: 3.3
as a :term:`provisional module <provisional package>` as a :term:`provisional module <provisional package>`.
Headers are represented by customized subclasses of :class:`str`. The Headers are represented by customized subclasses of :class:`str`. The
particular class used to represent a given header is determined by the particular class used to represent a given header is determined by the

View File

@ -48,7 +48,7 @@
This article explains the new features in Python 3.3, compared to 3.2. This article explains the new features in Python 3.3, compared to 3.2.
.. note:: Alpha users should be aware that this document is currently in .. note:: Beta users should be aware that this document is currently in
draft form. It will be updated substantially as Python 3.3 moves towards draft form. It will be updated substantially as Python 3.3 moves towards
release, so it's worth checking back even after reading earlier versions. release, so it's worth checking back even after reading earlier versions.

View File

@ -12,7 +12,7 @@ from platform import uname
from test.support import run_unittest from test.support import run_unittest
if uname()[0] == "Darwin": 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): if (maj, min, mic) < (8, 0, 0):
raise unittest.SkipTest("locale support broken for OS X < 10.4") raise unittest.SkipTest("locale support broken for OS X < 10.4")