From: Georg Brandl Date: Sun, 24 Jun 2012 17:29:49 +0000 (+0200) Subject: Fix test__locale on Mac; platform.uname() does not have a structseq-type interface... X-Git-Tag: v3.3.0b1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19c4e5bb391c805281288f1febc4dec12a365c86;p=thirdparty%2FPython%2Fcpython.git Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet). --- 19c4e5bb391c805281288f1febc4dec12a365c86 diff --cc Doc/library/email.headerregistry.rst index af72b7c3b876,af72b7c3b876..c884159e0e92 --- a/Doc/library/email.headerregistry.rst +++ b/Doc/library/email.headerregistry.rst @@@ -16,7 -16,7 +16,7 @@@ necessary by the core developers. .. versionadded:: 3.3 -- as a :term:`provisional module ` ++ as a :term:`provisional module `. Headers are represented by customized subclasses of :class:`str`. The particular class used to represent a given header is determined by the diff --cc Lib/test/test__locale.py index dab1565fbe2a,dab1565fbe2a..f7f1abdab208 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@@ -12,7 -12,7 +12,7 @@@ from platform import unam 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")