From 18711bce8909731182106abff913eab0861178b6 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Mon, 31 Mar 2003 22:11:45 +0000 Subject: [PATCH] backport test skip for test_locale on Mac OS X --- Lib/test/regrtest.py | 1 + Lib/test/test_locale.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 2b1eedb5e0b1..014a87af5c86 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -702,6 +702,7 @@ _expectations = { test_gl test_imgfile test_largefile + test_locale test_linuxaudiodev test_minidom test_nis diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index 0040a20899af..eb14924364ef 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -1,7 +1,9 @@ -from test_support import verbose +from test_support import verbose, TestSkipped import locale import sys +if sys.platform == 'darwin': + raise TestSkipped("Locale support on MacOSX is minimal and cannot be tested") oldlocale = locale.setlocale(locale.LC_NUMERIC) tloc = "en_US" -- 2.47.3