Skip to content

Commit 9b974bd

Browse files
committed
Re-enable test_format.test_locale
Technically speaking, my system was misconfigured, leading me to disable the test in the first place. `test_locale` calls `locale.setlocale(locale.LC_ALL, '')`, which reads the value of the `LANG` environment variable and uses that to look up and reset all the locale settings. My system has `LANG=en_US.UTF-8`, which is apparently not what this test was expecting. If `LANG` is unset or set to `C`, the test passes, as it does in CI.
1 parent de7e4e4 commit 9b974bd

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎Lib/test/test_format.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,6 @@ def test_non_ascii(self):
420420
self.assertEqual(format(1+2j, "\u2007^8"), "\u2007(1+2j)\u2007")
421421
self.assertEqual(format(0j, "\u2007^4"), "\u20070j\u2007")
422422

423-
# TODO: RUSTPYTHON formatting does not support locales
424-
# See https://github.com/RustPython/RustPython/issues/5181
425-
@unittest.expectedFailure
426423
def test_locale(self):
427424
try:
428425
oldloc = locale.setlocale(locale.LC_ALL)

0 commit comments

Comments
 (0)