Skip to content

Commit 6c226c4

Browse files
committed
skip sendmsg with MSG_DONTWAIT test on macOS
1 parent 5cca1b4 commit 6c226c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,7 @@ def _testSendmsgTimeout(self):
35163516
# Linux supports MSG_DONTWAIT when sending, but in general, it
35173517
# only works when receiving. Could add other platforms if they
35183518
# support it too.
3519-
@skipWithClientIf(sys.platform not in {"linux", "android"},
3519+
@skipWithClientIf(sys.platform not in {"linux", "android", "freebsd"},
35203520
"MSG_DONTWAIT not known to work on this platform when "
35213521
"sending")
35223522
def testSendmsgDontWait(self):
@@ -7431,6 +7431,9 @@ def test_recv_fds_peek(self):
74317431
self._test_pipe(fds[0], wfd, MSG)
74327432

74337433
@requireAttrs(socket, "MSG_DONTWAIT")
7434+
@unittest.skipIf(sys.platform in ("darwin",),
7435+
"MSG_DONTWAIT not known to work on this platform when "
7436+
"sending")
74347437
def test_send_fds_dontwait(self):
74357438
rfd, wfd = os.pipe()
74367439
self.addCleanup(os.close, rfd)

0 commit comments

Comments
 (0)