Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_codecs.py @ 71511:7063aa2fa127 3.2
Backport 0398f07d4827 (fix for weird buildbot failures)
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Wed, 27 Jul 2011 01:06:07 +0200 |
| parents | 92d02de91cc9 |
| children | 034ff986019d 1ef213b01dbb |
line wrap: on
line diff
--- a/Lib/test/test_codecs.py Tue Jul 26 13:53:55 2011 -0700 +++ b/Lib/test/test_codecs.py Wed Jul 27 01:06:07 2011 +0200 @@ -1234,7 +1234,7 @@ 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')
