New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_c_locale_coercion: test_PYTHONCOERCECLOCALE_set_to_one() failed on PPC64 Fedora 3.9 #85866
Comments
https://buildbot.python.org/all/#/builders/34/builds/16 pythoninfo: pre_config[utf8_mode]: 1 Tests logs: 0:23:06 load avg: 2.33 Re-running test_c_locale_coercion in verbose mode ====================================================================== Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.9.edelsohn-fedora-ppc64/build/Lib/test/test_c_locale_coercion.py", line 410, in test_PYTHONCOERCECLOCALE_set_to_one
loc = locale.setlocale(locale.LC_CTYPE, "")
File "/home/shager/cpython-buildarea/3.9.edelsohn-fedora-ppc64/build/Lib/locale.py", line 610, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting Ran 6 tests in 3.138s FAILED (errors=1, skipped=1) I guess that the locale.setlocale(locale.LC_CTYPE, "") call should catch the locale.Error and skip the test if the locale is not supported. |
The test also fails on PPC64 Fedora 3.x: The test pass on PPC64 Fedora 3.8, the latest build still used "LANG=en_US.UTF-8": The test still passed on PPC64 Fedora 3.9 in build 15 which was using LANG=en_US.UTF-8: pythoninfo: pre_config[utf8_mode]: 0 So the test started to fail when the buildbot worker configured changed to use LANG=C.UTF-8. |
I can reproduce the issue with: $ LC_ALL=xxx ./python -m test test_c_locale_coercion -m test_PYTHONCOERCECLOCALE_set_to_one -v
(...) ====================================================================== Traceback (most recent call last):
File "/home/vstinner/python/master/Lib/test/test_c_locale_coercion.py", line 410, in test_PYTHONCOERCECLOCALE_set_to_one
loc = locale.setlocale(locale.LC_CTYPE, "")
File "/home/vstinner/python/master/Lib/locale.py", line 610, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
(...) |
This issue is fixed. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: