[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE
Matej Cepl
report at bugs.python.org
Tue Oct 22 13:31:38 CEST 2013
Matej Cepl added the comment:
Hmm, so with this patch
diff -up Python-3.3.2/Lib/test/test_format.py.fixFormatTest Python-3.3.2/Lib/test/test_format.py
--- Python-3.3.2/Lib/test/test_format.py.fixFormatTest 2013-10-22 10:05:12.253426746 +0200
+++ Python-3.3.2/Lib/test/test_format.py 2013-10-22 10:16:58.510530570 +0200
@@ -288,7 +288,7 @@ class FormatTest(unittest.TestCase):
def test_locale(self):
try:
oldloc = locale.setlocale(locale.LC_ALL)
- locale.setlocale(locale.LC_ALL, '')
+ locale.setlocale(locale.LC_ALL, 'ps_AF')
except locale.Error as err:
self.skipTest("Cannot set locale: {}".format(err))
try:
(or any other explicit locale, I have tried also en_IE) test doesn't fail.
Using Python-3.3.2 on RHEL-6 (kernel 2.6.32-358.23.2.el6.i686).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7442>
_______________________________________
More information about the Python-bugs-list
mailing list