diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-26 11:56:37 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-26 11:56:37 (GMT) |
commit | 6327e8482e0e894b3c89a9d97ef29717ffd74b54 (patch) | |
tree | 3943d47b0e4132f5b0a952a7f83fc6a00ddba3e1 | |
parent | 524f4135dccc8cc916e0682728e5da0926e0fe36 (diff) | |
download | cpython-6327e8482e0e894b3c89a9d97ef29717ffd74b54.zip cpython-6327e8482e0e894b3c89a9d97ef29717ffd74b54.tar.gz cpython-6327e8482e0e894b3c89a9d97ef29717ffd74b54.tar.bz2 |
Fix more buildbot failures on test_locale.
-rw-r--r-- | Lib/test/test_locale.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index edd534f..57b7c72 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -224,10 +224,10 @@ class TestCNumberFormatting(CCookedTest, BaseFormattingTest): self._test_format("%9.2f", 12345.67, grouping=True, out=' 12345.67') -if sys.platform != 'sunos5': - class TestStringMethods(BaseLocalizedTest): - locale_type = locale.LC_CTYPE +class TestStringMethods(BaseLocalizedTest): + locale_type = locale.LC_CTYPE + if sys.platform != 'sunos5' and not sys.platform.startswith("win"): # Test BSD Rune locale's bug for isctype functions. def test_isspace(self): @@ -275,12 +275,17 @@ class TestMiscellaneous(unittest.TestCase): def test_main(): - tests = [TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting] + tests = [ + TestMiscellaneous, + TestEnUSNumberFormatting, + TestCNumberFormatting + ] # TestSkipped can't be raised inside unittests, handle it manually instead try: get_enUS_locale() except TestSkipped as e: - print "Some tests will be disabled: %s" % e + if verbose: + print "Some tests will be disabled: %s" % e else: tests += [TestNumberFormatting, TestStringMethods] run_unittest(*tests) |