[Python-checkins] python/dist/src/Lib/test test__locale.py, 1.9, 1.10

montanaro@users.sourceforge.net montanaro at users.sourceforge.net
Mon Sep 19 05:53:23 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10680/Lib/test

Modified Files:
	test__locale.py 
Log Message:
skip _locale test if OS X < 10.4

Index: test__locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test__locale.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test__locale.py	1 Mar 2005 03:15:50 -0000	1.9
+++ test__locale.py	19 Sep 2005 03:53:19 -0000	1.10
@@ -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