Skip to content

Commit aefccca

Browse files
committed
Skip platform-dependent tests
1 parent c58d2de commit aefccca

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
@@ -7072,6 +7072,8 @@ def testSendAndRecvFds(self):
70727072
for index, ((_, wfd), rfd) in enumerate(zip(pipes, fds2)):
70737073
self._test_pipe(rfd, wfd, str(index).encode())
70747074

7075+
@unittest.skipUnless(sys.platform in ("linux", "android", "darwin"),
7076+
"works on Linux and macOS")
70757077
def test_send_recv_fds_with_addrs(self):
70767078
sock1 = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
70777079
sock2 = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
@@ -7097,6 +7099,7 @@ def test_send_recv_fds_with_addrs(self):
70977099
self._test_pipe(fds[0], wfd, MSG)
70987100

70997101
@requireAttrs(socket, "MSG_PEEK")
7102+
@unittest.skipUnless(sys.platform in ("linux", "android"), "works on Linux")
71007103
def test_recv_fds_peek(self):
71017104
rfd, wfd = os.pipe()
71027105
self.addCleanup(os.close, rfd)
@@ -7128,7 +7131,7 @@ def test_recv_fds_peek(self):
71287131
self._test_pipe(fds[0], wfd, MSG)
71297132

71307133
@requireAttrs(socket, "MSG_DONTWAIT")
7131-
@unittest.skipUnless(sys.platform in ('linux', 'android'), 'Linux specific test')
7134+
@unittest.skipUnless(sys.platform in ("linux", "android"), "Linux specific test")
71327135
def test_send_fds_dontwait(self):
71337136
rfd, wfd = os.pipe()
71347137
self.addCleanup(os.close, rfd)

0 commit comments

Comments
 (0)