mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #23474: Enhanced locale testing.
This commit is contained in:
commit
8aba316fea
2 changed files with 60 additions and 39 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue