Kaydet (Commit) 0f533acf authored tarafından Zachary Ware's avatar Zachary Ware

Avoid UnicodeEncodeError by only printing ASCII.

This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572.
üst bdbffd03
......@@ -1163,10 +1163,10 @@ class FormatTest(unittest.TestCase):
thousands_sep = locale.localeconv()['thousands_sep']
if decimal_point != '\u066b':
self.skipTest('inappropriate decimal point separator'
'({!r} not {!r})'.format(decimal_point, '\u066b'))
'({!a} not {!a})'.format(decimal_point, '\u066b'))
if thousands_sep != '\u066c':
self.skipTest('inappropriate thousands separator'
'({!r} not {!r})'.format(thousands_sep, '\u066c'))
'({!a} not {!a})'.format(thousands_sep, '\u066c'))
self.assertEqual(format(Decimal('100000000.123'), 'n'),
'100\u066c000\u066c000\u066b123')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment