New submission from Remi Pointel: Hi,
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 setlocale return _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? Thanks, Remi. ---------- components: Library (Lib), Tests files: patch-Lib_test_test_locale_py messages: 251153 nosy: rpointel priority: normal severity: normal status: open title: test_getsetlocale_issue1813 failed on OpenBSD versions: Python 3.5 Added file: http://bugs.python.org/file40526/patch-Lib_test_test_locale_py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25191> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com