Title: test_getsetlocale_issue1813 failed on OpenBSD
Type: Stage:
Components: Library (Lib), Tests Versions: Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: lemburg, loewis, rpointel, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-09-20 08:31 by rpointel, last changed 2015-09-20 08:47 by serhiy.storchaka.

File name Uploaded Description Edit
patch-Lib_test_test_locale_py rpointel, 2015-09-20 08:31 patch to skip the second part if test does not work
Messages (1)
msg251153 - (view) Author: Remi Pointel (rpointel) * Date: 2015-09-20 08:31

the test test_getsetlocale_issue1813 in ./Lib/test/ failed on OpenBSD:

====================================================================== with ('tr_TR', 'ISO8859-9')
ERROR: test_getsetlocale_issue1813 (__main__.TestMiscellaneous)
Traceback (most recent call last):
  File "./Lib/test/", 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/", 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?


Date User Action Args
2015-09-20 08:47:56serhiy.storchakasetnosy: + lemburg, loewis, serhiy.storchaka
2015-09-20 08:31:18rpointelcreate