diff options
author | Skip Montanaro <skip@pobox.com> | 2006-01-07 19:08:55 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2006-01-07 19:08:55 (GMT) |
commit | 52f3d18bfe1f3c2ba36f47a0accab2effefc32f3 (patch) | |
tree | 3599db53181f244f7d66ffb28226f364e317ba09 | |
parent | 5fc14c50278f4a50a57ea2d263feb9164b6521df (diff) | |
download | cpython-52f3d18bfe1f3c2ba36f47a0accab2effefc32f3.zip cpython-52f3d18bfe1f3c2ba36f47a0accab2effefc32f3.tar.gz cpython-52f3d18bfe1f3c2ba36f47a0accab2effefc32f3.tar.bz2 |
Skip this test on Darwin. It's skipped on the trunk and is listed as
an expected skip in regrtest.py. Make it so.
-rw-r--r-- | Lib/test/test__locale.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index abf7a5b..66dc469 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -2,6 +2,12 @@ from test.test_support import verbose, TestSkipped, run_unittest from _locale import (setlocale, LC_NUMERIC, RADIXCHAR, THOUSEP, nl_langinfo, localeconv, Error) 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', 'et_EE', 'es_PY', 'no_NO', 'nl_NL', 'lv_LV', 'el_GR', 'be_BY', 'fr_BE', |