diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-26 23:06:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-26 23:06:07 (GMT) |
commit | 2a20f9be709a805e3af5d9cf5b4fe987b9db7c1c (patch) | |
tree | 58f58a4bb8e06f3c1ce44c7761ae1ce4bcf42169 /Lib/test/test_codecs.py | |
parent | ba2eab25ff54209d119ce9e0c7dd88bdf76b5460 (diff) | |
download | cpython-2a20f9be709a805e3af5d9cf5b4fe987b9db7c1c.zip cpython-2a20f9be709a805e3af5d9cf5b4fe987b9db7c1c.tar.gz cpython-2a20f9be709a805e3af5d9cf5b4fe987b9db7c1c.tar.bz2 |
Backport 0398f07d4827 (fix for weird buildbot failures)
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 6b84023..4899a59 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -1234,7 +1234,7 @@ class CodecsModuleTest(unittest.TestCase): def test_lookup_issue1813(self): # Issue #1813: under Turkish locales, lookup of some codecs failed # because 'I' is lowercased as "ı" (dotless i) - oldlocale = locale.getlocale(locale.LC_CTYPE) + oldlocale = locale.setlocale(locale.LC_CTYPE) self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale) try: locale.setlocale(locale.LC_CTYPE, 'tr_TR') |