mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).
This commit is contained in:
commit
19c4e5bb39
3 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue