Merge fix from 3.3
This commit is contained in:
commit
8fda4749e3
|
@ -1163,10 +1163,10 @@ class FormatTest(unittest.TestCase):
|
||||||
thousands_sep = locale.localeconv()['thousands_sep']
|
thousands_sep = locale.localeconv()['thousands_sep']
|
||||||
if decimal_point != '\u066b':
|
if decimal_point != '\u066b':
|
||||||
self.skipTest('inappropriate decimal point separator'
|
self.skipTest('inappropriate decimal point separator'
|
||||||
'({!r} not {!r})'.format(decimal_point, '\u066b'))
|
'({!a} not {!a})'.format(decimal_point, '\u066b'))
|
||||||
if thousands_sep != '\u066c':
|
if thousands_sep != '\u066c':
|
||||||
self.skipTest('inappropriate thousands separator'
|
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'),
|
self.assertEqual(format(Decimal('100000000.123'), 'n'),
|
||||||
'100\u066c000\u066c000\u066b123')
|
'100\u066c000\u066c000\u066b123')
|
||||||
|
|
Loading…
Reference in New Issue