We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff852aa commit 723e21aCopy full SHA for 723e21a
Lib/test/test_format.py
@@ -428,13 +428,16 @@ def test_locale(self):
428
localeconv = locale.localeconv()
429
sep = localeconv['thousands_sep']
430
point = localeconv['decimal_point']
431
+ grouping = localeconv['grouping']
432
433
text = format(123456789, "n")
- self.assertIn(sep, text)
434
+ if grouping:
435
+ self.assertIn(sep, text)
436
self.assertEqual(text.replace(sep, ''), '123456789')
437
438
text = format(1234.5, "n")
439
440
441
self.assertIn(point, text)
442
self.assertEqual(text.replace(sep, ''), '1234' + point + '5')
443
finally:
0 commit comments