summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-26 21:55:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-26 21:55:33 (GMT)
commitd05066d1eefcba422dbe3ebd50017905eac57af8 (patch)
treec131b1c9ce5f1c2018e3acc613eaa177c86a507c /Lib/test/test_codecs.py
parent0975dedfe08f46b76292d779b85cfe38a57cec9d (diff)
downloadcpython-d05066d1eefcba422dbe3ebd50017905eac57af8.zip
cpython-d05066d1eefcba422dbe3ebd50017905eac57af8.tar.gz
cpython-d05066d1eefcba422dbe3ebd50017905eac57af8.tar.bz2
Try to fix weird buildbot failures
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r--Lib/test/test_codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 247e2b8..7a9e38c 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')