Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19c4e5b

Browse files
committed
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).
2 parents 318c56c + 988049a commit 19c4e5b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/email.headerregistry.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
necessary by the core developers.
1717

1818
.. versionadded:: 3.3
19-
as a :term:`provisional module <provisional package>`
19+
as a :term:`provisional module <provisional package>`.
2020

2121
Headers are represented by customized subclasses of :class:`str`. The
2222
particular class used to represent a given header is determined by the

Doc/whatsnew/3.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
4949
This article explains the new features in Python 3.3, compared to 3.2.
5050

51-
.. note:: Alpha users should be aware that this document is currently in
51+
.. note:: Beta users should be aware that this document is currently in
5252
draft form. It will be updated substantially as Python 3.3 moves towards
5353
release, so it's worth checking back even after reading earlier versions.
5454

Lib/test/test__locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from test.support import run_unittest
1313

1414
if uname()[0] == "Darwin":
15-
maj, min, mic = [int(part) for part in uname().release.split(".")]
15+
maj, min, mic = [int(part) for part in uname()[2].split(".")]
1616
if (maj, min, mic) < (8, 0, 0):
1717
raise unittest.SkipTest("locale support broken for OS X < 10.4")
1818

0 commit comments

Comments
 (0)