Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.

See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
This commit is contained in:
Stefan Krah 2011-08-02 01:06:16 +02:00
parent aa71583f09
commit f187a0230b
1 changed files with 3 additions and 0 deletions

View File

@ -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)