mirror of
https://github.com/python/cpython.git
synced 2025-10-10 08:53:14 +00:00
skip _locale test if OS X < 10.4
This commit is contained in:
parent
4ed673877d
commit
f8948ca5d7
2 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,12 @@ from test.test_support import verbose, TestSkipped, run_unittest
|
||||||
from _locale import (setlocale, LC_NUMERIC, RADIXCHAR, THOUSEP, nl_langinfo,
|
from _locale import (setlocale, LC_NUMERIC, RADIXCHAR, THOUSEP, nl_langinfo,
|
||||||
localeconv, Error)
|
localeconv, Error)
|
||||||
import unittest
|
import unittest
|
||||||
|
from platform import uname
|
||||||
|
|
||||||
|
if uname()[0] == "Darwin":
|
||||||
|
maj, min, mic = [int(part) for part in uname()[2].split(".")]
|
||||||
|
if (maj, min, mic) < (8, 0, 0):
|
||||||
|
raise TestSkipped("locale support broken for OS X < 10.4")
|
||||||
|
|
||||||
candidate_locales = ['es_UY', 'fr_FR', 'fi_FI', 'es_CO', 'pt_PT', 'it_IT',
|
candidate_locales = ['es_UY', 'fr_FR', 'fi_FI', 'es_CO', 'pt_PT', 'it_IT',
|
||||||
'et_EE', 'es_PY', 'no_NO', 'nl_NL', 'lv_LV', 'el_GR', 'be_BY', 'fr_BE',
|
'et_EE', 'es_PY', 'no_NO', 'nl_NL', 'lv_LV', 'el_GR', 'be_BY', 'fr_BE',
|
||||||
|
|
|
@ -12,6 +12,9 @@ What's New in Python 2.5 alpha 1?
|
||||||
Core and builtins
|
Core and builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- test__locale is skipped on OS X < 10.4 (only partial locale support is
|
||||||
|
present).
|
||||||
|
|
||||||
- SF bug #893549: parsing keyword arguments was broken with a few format
|
- SF bug #893549: parsing keyword arguments was broken with a few format
|
||||||
codes.
|
codes.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue