summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-05-29 18:46:27 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-05-29 18:46:27 (GMT)
commitd92ccb1f75ad5852e280c90354e5f547db649418 (patch)
tree599efe4ebd4dfbb76e847ed2f057c98f82d7e79f
parentdaafdd5bea1edb0fa980727cf8c52bfe7928d6b8 (diff)
downloadcpython-d92ccb1f75ad5852e280c90354e5f547db649418.zip
cpython-d92ccb1f75ad5852e280c90354e5f547db649418.tar.gz
cpython-d92ccb1f75ad5852e280c90354e5f547db649418.tar.bz2
Skip test_pipe2 on Linux kernels older than 2.6.27.
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index e9103cd..79e2d36 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -480,6 +480,10 @@ class PosixTester(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
def test_pipe2(self):
+ version = support.linux_version()
+ if sys.platform == 'linux2' and version < (2, 6, 27):
+ self.skipTest("Linux kernel 2.6.27 or higher required, "
+ "not %s.%s.%s" % version)
self.assertRaises(TypeError, os.pipe2, 'DEADBEEF')
self.assertRaises(TypeError, os.pipe2, 0, 0)