[Python-checkins] r41944 - python/branches/release24-maint/Lib/test/test__locale.py

skip.montanaro python-checkins at python.org
Sat Jan 7 20:08:56 CET 2006


Author: skip.montanaro
Date: Sat Jan  7 20:08:55 2006
New Revision: 41944

Modified:
   python/branches/release24-maint/Lib/test/test__locale.py
Log:
Skip this test on Darwin.  It's skipped on the trunk and is listed as
an expected skip in regrtest.py.  Make it so.


Modified: python/branches/release24-maint/Lib/test/test__locale.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test__locale.py	(original)
+++ python/branches/release24-maint/Lib/test/test__locale.py	Sat Jan  7 20:08:55 2006
@@ -2,6 +2,12 @@
 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',


More information about the Python-checkins mailing list