summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2013-12-12 16:32:16 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2013-12-12 16:32:16 (GMT)
commit0f533acf884f01987bfde9f0cf6dc17c4b9a2f61 (patch)
tree8cf8f36e00d51ca5779f1588c0143268b1f685a9 /Lib
parentbdbffd03421cb971aa144c491a3369253e0c283a (diff)
downloadcpython-0f533acf884f01987bfde9f0cf6dc17c4b9a2f61.zip
cpython-0f533acf884f01987bfde9f0cf6dc17c4b9a2f61.tar.gz
cpython-0f533acf884f01987bfde9f0cf6dc17c4b9a2f61.tar.bz2
Avoid UnicodeEncodeError by only printing ASCII.
This fixes running test_decimal in verbose mode on Windows, which I broke in issue #19572.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index d67df79..4031347 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -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')