changeset: 87910:1ad2ff119356 branch: 3.3 parent: 87906:222ade565dbd user: Zachary Ware date: Thu Dec 12 10:32:16 2013 -0600 files: Lib/test/test_decimal.py description: Avoid UnicodeEncodeError by only printing ASCII. This fixes running test_decimal in verbose mode on Windows, which I broke in issue #19572. diff -r 222ade565dbd -r 1ad2ff119356 Lib/test/test_decimal.py --- a/Lib/test/test_decimal.py Wed Dec 11 17:12:34 2013 -0600 +++ b/Lib/test/test_decimal.py Thu Dec 12 10:32:16 2013 -0600 @@ -1163,10 +1163,10 @@ 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')

AltStyle によって変換されたページ (->オリジナル) /