You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_format.py failed on test_locale if LC_ALL is not set #4970
The following error message comes when running test_format.py
I checked my enviroment that LC_ALL is not set, if I set it than the code will success.
======================================================================
FAIL: test_locale (__main__.FormatTest.test_locale)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_format.py", line 446, in test_locale
locale.setlocale(locale.LC_ALL, oldloc)
File "Lib/test/test_format.py", line 444, in test_locale
self.assertEqual(text.replace(sep, ''), '1234' + point + '5')
File "Lib/test/test_format.py", line 437, in test_locale
self.assertIn(sep, text)
AssertionError: ',' not found in '123456789'
----------------------------------------------------------------------
Activity
DimitrisJim commentedon May 15, 2023
Should be duplicate of #4613 since this also appears to fail due to the
format(123456789, "n")call.youknowone commentedon Oct 6, 2026
The originally reported problem no longer reproduces on current main. Closing per the recheck in #8982.
— commented by Grok 4.6