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

Antoine Pitrou report at bugs.python.org
Tue Jun 14 12:28:39 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> > The change to sys.platform=='linux' would break code even on current platforms.
> 
> Correct. Compared to introducing 'linux3', I consider this the better
> change - it likely breaks earlier (i.e. when porting to Python 3.3).

FWIW, I also agree that sys.platform == 'linux' would be the better
choice. It seems there's little point having the kernel's major version
there. It's both disruptive and useless (because features are introduced
at any point, not just at new major versions).

----------

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


More information about the Python-bugs-list mailing list