[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'
STINNER Victor
report at bugs.python.org
Mon Jun 13 16:38:24 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Why should be used instead?
- sys.platform.startswith('linux')
- os.uname()[0] == 'Linux'
- platform.system() == 'Linux'
- other?
Tests like sys.platform in ('linux2', 'darwin') can be replaced by sys.platform in ('linux2', 'linux3', 'darwin'). We will have to patch this test again for Linux 4.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________
More information about the Python-bugs-list
mailing list