summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_bdist_rpm.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-08-17 18:49:41 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-08-17 18:49:41 (GMT)
commit9c3de4a88357cef2753d30c816a238bd74f39273 (patch)
treec799cb6ebcd0ec62801a275291e4f8b0ca9846d0 /Lib/distutils/tests/test_bdist_rpm.py
parentc77239613ba08878f07fac5e23ea60fbcf386a06 (diff)
downloadcpython-9c3de4a88357cef2753d30c816a238bd74f39273.zip
cpython-9c3de4a88357cef2753d30c816a238bd74f39273.tar.gz
cpython-9c3de4a88357cef2753d30c816a238bd74f39273.tar.bz2
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.
Diffstat (limited to 'Lib/distutils/tests/test_bdist_rpm.py')
-rw-r--r--Lib/distutils/tests/test_bdist_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py
index 030933f..9b0639a 100644
--- a/Lib/distutils/tests/test_bdist_rpm.py
+++ b/Lib/distutils/tests/test_bdist_rpm.py
@@ -47,7 +47,7 @@ class BuildRpmTestCase(support.TempdirManager,
# XXX I am unable yet to make this test work without
# spurious sdtout/stderr output under Mac OS X
- if sys.platform != 'linux2':
+ if not sys.platform.startswith('linux'):
return
# this test will run only if the rpm commands are found
@@ -87,7 +87,7 @@ class BuildRpmTestCase(support.TempdirManager,
# XXX I am unable yet to make this test work without
# spurious sdtout/stderr output under Mac OS X
- if sys.platform != 'linux2':
+ if not sys.platform.startswith('linux'):
return
# http://bugs.python.org/issue1533164