[Python-checkins] cpython (3.2): Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.

stefan.krah python-checkins at python.org
Tue Aug 2 01:22:03 CEST 2011


http://hg.python.org/cpython/rev/68b5f87566fb
changeset: 71683:68b5f87566fb
branch: 3.2
parent: 71679:1f9ca1819d7c
user: Stefan Krah <skrah at bytereef.org>
date: Tue Aug 02 01:06:16 2011 +0200
summary:
 Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
See: https://bugzilla.redhat.com/show_bug.cgi?id=726536
files:
 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
--- 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 @@
 # 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /