Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8d633d37
Commit
8d633d37
authored
May 20, 2013
by
Charles-Francois Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17684: Fix some test_socket failures due to limited FD passing support
on OS-X. Patch by Jeff Ramnani.
parent
69926222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Lib/test/test_socket.py
Lib/test/test_socket.py
+4
-6
No files found.
Lib/test/test_socket.py
View file @
8d633d37
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment