[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

Tal Einat report at bugs.python.org
Wed May 29 06:29:25 EDT 2019


Tal Einat <taleinat at gmail.com> added the comment:

There a cleanly rebased PR up at GH-13648.

I'd like to get opinions from additional people about this now that the PR is ready. Steve? Victor?


Some discussion which happened in PR comments:

Andrew Svetlov approved the changes for the asyncio tests.

Stefan Krah asked to revert the changes in test_decimal, saying "I don't quite like this change.". Michael Felt argued "imho - this adds clarity to the whole", to which Stefan replied: "I don't think so: Now I have to wonder which of the different idioms hides behind MS_WINDOWS. And in other project's setup.py files I still need sys.platform, so now there's even one additional way to accomplish the same thing."

Michael followed up with additional arguments in favor of this change, which are rather verbose, but can be summed up as saying that this adds clarity and uniformity throughout the tests.

----------
nosy: +taleinat

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


More information about the Python-bugs-list mailing list