[Python-checkins] cpython (3.3): Issue #17684: Fix some test_socket failures due to limited FD passing support
charles-francois.natali
python-checkins at python.org
Sun Aug 4 15:40:02 CEST 2013
http://hg.python.org/cpython/rev/b7d764807343
changeset: 85019:b7d764807343
branch: 3.3
parent: 85007:a5a5ba4f71ad
user: Charles-Francois Natali <cf.natali at gmail.com>
date: Mon May 20 19:08:19 2013 +0200
summary:
Issue #17684: Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.
files:
Lib/test/test_socket.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2533,8 +2533,7 @@
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 @@
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 @@
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 @@
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(
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list