]> granicus.if.org Git - python/commitdiff
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface...
authorGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 17:29:49 +0000 (19:29 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 17:29:49 +0000 (19:29 +0200)
1  2 
Doc/library/email.headerregistry.rst
Lib/test/test__locale.py

index af72b7c3b8767ad2683d9a7a781f027dd48c7bdf,af72b7c3b8767ad2683d9a7a781f027dd48c7bdf..c884159e0e929b53b8b54925056201ee4752d394
@@@ -16,7 -16,7 +16,7 @@@
     necessary by the core developers.
  
  .. 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
  particular class used to represent a given header is determined by the
index dab1565fbe2a7d0d82fafdc5944e7ec115b46a0a,dab1565fbe2a7d0d82fafdc5944e7ec115b46a0a..f7f1abdab2088b930a1914f5af736e14e88ead8a
@@@ -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")