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 ad37c66 commit 1e96de9Copy full SHA for 1e96de9
Lib/test/test_format.py
@@ -427,13 +427,16 @@ def test_locale(self):
427
localeconv = locale.localeconv()
428
sep = localeconv['thousands_sep']
429
point = localeconv['decimal_point']
430
+ grouping = localeconv['grouping']
431
432
text = format(123456789, "n")
- self.assertIn(sep, text)
433
+ if grouping:
434
+ self.assertIn(sep, text)
435
self.assertEqual(text.replace(sep, ''), '123456789')
436
437
text = format(1234.5, "n")
438
439
440
self.assertIn(point, text)
441
self.assertEqual(text.replace(sep, ''), '1234' + point + '5')
442
finally:
0 commit comments