Skip to content

Commit bb1c5ad

Browse files
committed
Revert "try enabling test_recv_fds_peek on macOS"
This reverts commit b130108.
1 parent b130108 commit bb1c5ad

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/test/test_socket.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7395,9 +7395,7 @@ def test_send_recv_fds_with_addrs(self):
73957395
self._test_pipe(fds[0], wfd, MSG)
73967396

73977397
@requireAttrs(socket, "MSG_PEEK")
7398-
@unittest.skipUnless(sys.platform in ("linux", "android", "darwin"),
7399-
"MSG_PEEK with SCM_RIGHTS not known to work on this "
7400-
"platform")
7398+
@unittest.skipUnless(sys.platform in ("linux", "android"), "works on Linux")
74017399
def test_recv_fds_peek(self):
74027400
rfd, wfd = os.pipe()
74037401
self.addCleanup(os.close, rfd)
@@ -7410,7 +7408,7 @@ def test_recv_fds_peek(self):
74107408

74117409
# peek message on sock2
74127410
peek_len = len(MSG) // 2
7413-
msg, fds, flags, addr = socket.recv_fds(sock2, peek_len, 2,
7411+
msg, fds, flags, addr = socket.recv_fds(sock2, peek_len, 1,
74147412
flags=socket.MSG_PEEK)
74157413
self._cleanup_fds(fds)
74167414

@@ -7423,7 +7421,7 @@ def test_recv_fds_peek(self):
74237421
self._test_pipe(fds[0], wfd, MSG)
74247422

74257423
# will raise BlockingIOError if MSG_PEEK didn't work
7426-
msg, fds, flags, addr = socket.recv_fds(sock2, len(MSG), 2)
7424+
msg, fds, flags, addr = socket.recv_fds(sock2, len(MSG), 1)
74277425
self._cleanup_fds(fds)
74287426

74297427
self.assertEqual(msg, MSG)

0 commit comments

Comments
 (0)