Skip to content

Commit d37ba07

Browse files
committed
make 2 tests of MSG_DONTWAIT to be consistent
1 parent 5d3e896 commit d37ba07

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/test/test_socket.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3513,10 +3513,11 @@ def _testSendmsgTimeout(self):
35133513

35143514
# XXX: would be nice to have more tests for sendmsg flags argument.
35153515

3516-
# Linux supports MSG_DONTWAIT when sending, but in general, it
3517-
# only works when receiving. Could add other platforms if they
3516+
# Linux and FreeBSD support MSG_DONTWAIT when sending, but in general,
3517+
# it only works when receiving. Could add other platforms if they
35183518
# support it too.
3519-
@skipWithClientIf(sys.platform not in {"linux", "android", "freebsd"},
3519+
@requireAttrs(socket, "MSG_DONTWAIT")
3520+
@skipWithClientIf(sys.platform in ("darwin",),
35203521
"MSG_DONTWAIT not known to work on this platform when "
35213522
"sending")
35223523
def testSendmsgDontWait(self):

0 commit comments

Comments
 (0)