Commit faba07dc authored by Victor Stinner's avatar Victor Stinner

Issue #12326: don't test the major version of sys.platform

Use startswith, instead of ==, when testing sys.platform to support
new platforms like Linux 3 or OpenBSD 5.
parent 477a6fa4
...@@ -47,7 +47,7 @@ class BuildRpmTestCase(support.TempdirManager, ...@@ -47,7 +47,7 @@ class BuildRpmTestCase(support.TempdirManager,
# XXX I am unable yet to make this test work without # XXX I am unable yet to make this test work without
# spurious sdtout/stderr output under Mac OS X # spurious sdtout/stderr output under Mac OS X
if sys.platform != 'linux2': if not sys.platform.startswith('linux'):
return return
# this test will run only if the rpm commands are found # this test will run only if the rpm commands are found
...@@ -87,7 +87,7 @@ class BuildRpmTestCase(support.TempdirManager, ...@@ -87,7 +87,7 @@ class BuildRpmTestCase(support.TempdirManager,
# XXX I am unable yet to make this test work without # XXX I am unable yet to make this test work without
# spurious sdtout/stderr output under Mac OS X # spurious sdtout/stderr output under Mac OS X
if sys.platform != 'linux2': if not sys.platform.startswith('linux'):
return return
# http://bugs.python.org/issue1533164 # http://bugs.python.org/issue1533164
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment