[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

STINNER Victor report at bugs.python.org
Wed Mar 31 05:56:57 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

I wrote PR 25110 to simply skip the test if setlocale() fails. It fix the issue on Windows (I tested manually, see my comment on my PR), but it should also fix the issue on OpenBSD and any platform where getlocale() returns a locale not accepted by setlocale().

Again, don't ust getlocale(category) but setlocale(category, None).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37945>
_______________________________________


More information about the Python-bugs-list mailing list