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
the test test_getsetlocale_issue1813 in ./Lib/test/test_locale.py failed on OpenBSD:
======================================================================
...........s....ss..................testing with ('tr_TR', 'ISO8859-9') E....ss
ERROR: test_getsetlocale_issue1813 (main.TestMiscellaneous)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./Lib/test/test_locale.py.orig", line 515, in test_getsetlocale_issue1813
locale.setlocale(locale.LC_CTYPE, loc)
File "/usr/ports/pobj/Python-3.5.0/Python-3.5.0/Lib/locale.py", line 595, in setlocalereturn _setlocale(category, locale)
locale.Error: unsupported locale setting
Ran 38 tests in 0.040s
FAILED (errors=1, skipped=5)
The first setlocale(locale.LC_CTYPE, 'tr_TR') works fine, but loc = locale.getlocale(locale.LC_CTYPE) then locale.setlocale(locale.LC_CTYPE, loc) does not work.
Attached is a patch to skip the second part if it does not work, is it correct?
The problem with this patch is that the second assert is the point of the test. Do get/set_locale work in the TR locale?
Although this issue came first, I am closing it as a duplicate of bpo-37945 as the latter has extensive, but to date inconclusive, analysis and discussion.
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: