This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rpointel
Recipients rpointel
Date 2015-09-20.08:31:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442737878.41.0.0154038500687.issue25191@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-20 08:31:18rpointelsetrecipients: + rpointel
2015-09-20 08:31:18rpointelsetmessageid: <1442737878.41.0.0154038500687.issue25191@psf.upfronthosting.co.za>
2015-09-20 08:31:18rpointellinkissue25191 messages
2015-09-20 08:31:18rpointelcreate