diff options
author | Stefan Krah <skrah@bytereef.org> | 2011-08-01 23:06:16 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2011-08-01 23:06:16 (GMT) |
commit | f187a0230bd6e9ad64a6249de50517b36c383c02 (patch) | |
tree | 814e3723e8e41e6110a7c7255b16116574b1f484 /Lib/test/test_locale.py | |
parent | aa71583f09a39becfb3df55dc440820f33925029 (diff) | |
download | cpython-f187a0230bd6e9ad64a6249de50517b36c383c02.zip cpython-f187a0230bd6e9ad64a6249de50517b36c383c02.tar.gz cpython-f187a0230bd6e9ad64a6249de50517b36c383c02.tar.bz2 |
Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r-- | Lib/test/test_locale.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index 46e228e..5d4b5fb 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -1,4 +1,5 @@ from test.support import run_unittest, verbose +from platform import linux_distribution import unittest import locale import sys @@ -391,6 +392,8 @@ class TestMiscellaneous(unittest.TestCase): # crasher from bug #7419 self.assertRaises(locale.Error, locale.setlocale, 12345) + @unittest.skipIf(linux_distribution()[0] == 'Fedora', "Fedora setlocale() " + "bug: https://bugzilla.redhat.com/show_bug.cgi?id=726536") def test_getsetlocale_issue1813(self): # Issue #1813: setting and getting the locale under a Turkish locale oldlocale = locale.setlocale(locale.LC_CTYPE) |