summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-Francois Natali <cf.natali@gmail.com>2013-05-20 17:08:19 (GMT)
committerCharles-Francois Natali <cf.natali@gmail.com>2013-05-20 17:08:19 (GMT)
commitdd225e4c643507f2d8c6f222edbfe4a6df2d2b88 (patch)
tree99697bfc7712604b36a8062214e5dc396dd71271
parentca97fd305394d48c0050cd230ce41a057fd71636 (diff)
downloadcpython-dd225e4c643507f2d8c6f222edbfe4a6df2d2b88.zip
cpython-dd225e4c643507f2d8c6f222edbfe4a6df2d2b88.tar.gz
cpython-dd225e4c643507f2d8c6f222edbfe4a6df2d2b88.tar.bz2
Issue #17684: Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.
-rw-r--r--Lib/test/test_socket.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 0048e3d..fa9a65f 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2533,8 +2533,7 @@ class SCMRightsTest(SendrecvmsgServerTimeoutBase):
def _testFDPassCMSG_LEN(self):
self.createAndSendFDs(1)
- # Issue #12958: The following test has problems on Mac OS X
- @support.anticipate_failure(sys.platform == "darwin")
+ @unittest.skipIf(sys.platform == "darwin", "skipping, see issue #12958")
@requireAttrs(socket, "CMSG_SPACE")
def testFDPassSeparate(self):
# Pass two FDs in two separate arrays. Arrays may be combined
@@ -2544,7 +2543,7 @@ class SCMRightsTest(SendrecvmsgServerTimeoutBase):
maxcmsgs=2)
@testFDPassSeparate.client_skip
- @support.anticipate_failure(sys.platform == "darwin")
+ @unittest.skipIf(sys.platform == "darwin", "skipping, see issue #12958")
def _testFDPassSeparate(self):
fd0, fd1 = self.newFDs(2)
self.assertEqual(
@@ -2556,8 +2555,7 @@ class SCMRightsTest(SendrecvmsgServerTimeoutBase):
array.array("i", [fd1]))]),
len(MSG))
- # Issue #12958: The following test has problems on Mac OS X
- @support.anticipate_failure(sys.platform == "darwin")
+ @unittest.skipIf(sys.platform == "darwin", "skipping, see issue #12958")
@requireAttrs(socket, "CMSG_SPACE")
def testFDPassSeparateMinSpace(self):
# Pass two FDs in two separate arrays, receiving them into the
@@ -2569,7 +2567,7 @@ class SCMRightsTest(SendrecvmsgServerTimeoutBase):
maxcmsgs=2, ignoreflags=socket.MSG_CTRUNC)
@testFDPassSeparateMinSpace.client_skip
- @support.anticipate_failure(sys.platform == "darwin")
+ @unittest.skipIf(sys.platform == "darwin", "skipping, see issue #12958")
def _testFDPassSeparateMinSpace(self):
fd0, fd1 = self.newFDs(2)
self.assertEqual(