[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'
STINNER Victor
report at bugs.python.org
Wed Jul 20 01:20:35 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> Your patch looks fine to me, except for this:
> - if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
> - 'freebsd7', 'freebsd8')
> - or platform.startswith("gnukfreebsd")):
> + if os.uname()[0] in ('Linux', 'FreeBSD'):
>
> Why not use platform.system(), to be consistent?
I'm not sure that thp platform module can be used in setup.py
(bootstrap issue?). It should be tested.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________
More information about the Python-bugs-list
mailing list