[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

Charles-François Natali report at bugs.python.org
Mon Jun 20 15:48:45 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

> However, it appears to me that vast majority of them is broken anyway,
> because what they really mean to check is

That's exactly my point.
Code checking sys.platform against 'linux2' is already broken, there's
no point in complicating the code further, or adding a new constant.
If you want to check for a specific operating system, there's already
platform.system().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________


More information about the Python-bugs-list mailing list