[issue32002] test_c_locale_coercion fails when the default LC_CTYPE != "C"

Nick Coghlan report at bugs.python.org
Fri Nov 10 07:49:37 EST 2017


Nick Coghlan <ncoghlan at gmail.com> added the comment:

OK, I'd been meaning to get back to refactoring those tests anyway, so assigning this to myself.

I'm thinking that the right way to go will be to give the test case a more explicit model of "expected platform behaviour" (initialised in setupModule), rather than having that be implicit in a bunch of conditionals scattered throughout the individual test cases.

Then we'd have at least the following cases:

- default is C, POSIX is an alias for C (most Linux distros)
- default is C, POSIX is a separate locale (*BSD)
- default is C.UTF-8 (Cygwin, potentially Android depending on exactly how we resolve that)

----------
assignee:  -> ncoghlan

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


More information about the Python-bugs-list mailing list