]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip this test on Darwin. It's skipped on the trunk and is listed as
authorSkip Montanaro <skip@pobox.com>
Sat, 7 Jan 2006 19:08:55 +0000 (19:08 +0000)
committerSkip Montanaro <skip@pobox.com>
Sat, 7 Jan 2006 19:08:55 +0000 (19:08 +0000)
an expected skip in regrtest.py.  Make it so.

Lib/test/test__locale.py

index abf7a5be2751e4c12a43c2d58c93411443a69a2c..66dc469b074e577aff6c51d7db345debe03f932f 100644 (file)
@@ -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',