cpython: 9cfaefa58bdc (original) (raw)
Mercurial > cpython
changeset 83866:9cfaefa58bdc
Issue #17684: Fix some test_socket failures due to limited FD passing support on OS-X. Patch by Jeff Ramnani. [#17684]
Charles-Francois Natali cf.natali@gmail.com | |
---|---|
date | Mon, 20 May 2013 19:08:19 +0200 |
parents | f9d815522cdb |
children | 12cbb5183d98 |
files | Lib/test/test_socket.py |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-)[+] [-] Lib/test/test_socket.py 10 |
line wrap: on
line diff
--- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2618,8 +2618,7 @@ class SCMRightsTest(SendrecvmsgServerTim 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
@@ -2629,7 +2628,7 @@ class SCMRightsTest(SendrecvmsgServerTim maxcmsgs=2) @testFDPassSeparate.client_skip
- @unittest.skipIf(sys.platform == "darwin", "skipping, see issue #12958") def _testFDPassSeparate(self): fd0, fd1 = self.newFDs(2) self.assertEqual(
@@ -2641,8 +2640,7 @@ class SCMRightsTest(SendrecvmsgServerTim 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
@@ -2654,7 +2652,7 @@ class SCMRightsTest(SendrecvmsgServerTim maxcmsgs=2, ignoreflags=socket.MSG_CTRUNC) @testFDPassSeparateMinSpace.client_skip