Issue #23474: Enhanced locale testing.

This commit is contained in:
Serhiy Storchaka 2015-02-18 08:05:05 +02:00
commit 8aba316fea
2 changed files with 60 additions and 39 deletions

View file

@ -511,7 +511,7 @@ class TestMiscellaneous(unittest.TestCase):
self.skipTest('test needs Turkish locale')
loc = locale.getlocale(locale.LC_CTYPE)
if verbose:
print('got locale %a' % (loc,))
print('testing with %a' % (loc,), end=' ', flush=True)
locale.setlocale(locale.LC_CTYPE, loc)
self.assertEqual(loc, locale.getlocale(locale.LC_CTYPE))