8000 skip flaky test_socket sendmsg tests in macos · RustPython/RustPython@1cec856 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cec856

Browse files
committed
skip flaky test_socket sendmsg tests in macos
1 parent 6212c81 commit 1cec856

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_socket.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,6 @@ def _testSendmsgAncillaryGenerator(self):
28812881
self.assertEqual(self.sendmsgToServer([MSG], (o for o in [])),
28822882
len(MSG))
28832883

2884-
@unittest.skipIf(sys.platform == "darwin", "flaky on macOS")
28852884
def testSendmsgArray(self):
28862885
# Send data from an array instead of the usual bytes object.
28872886
self.assertEqual(self.serv_sock.recv(len(MSG)), MSG)
@@ -2890,7 +2889,6 @@ def _testSendmsgArray(self):
28902889
self.assertEqual(self.sendmsgToServer([array.array("B", MSG)]),
28912890
len(MSG))
28922891

2893-
@unittest.skipIf(sys.platform == "darwin", "flaky on macOS")
28942892
def testSendmsgGather(self):
28952893
# Send message data from more than one buffer (gather write).
28962894
self.assertEqual(self.serv_sock.recv(len(MSG)), MSG)
@@ -2953,7 +2951,6 @@ def _testSendmsgBadMultiCmsg(self):
29532951
[MSG], [(0, 0, b""), object()])
29542952
self.sendToServer(b"done")
29552953

2956-
@unittest.skipIf(sys.platform == "darwin", "flaky on macOS")
29572954
def testSendmsgExcessCmsgReject(self):
29582955
# Check that sendmsg() rejects excess ancillary data items
29592956
# when the number that can be sent is limited.
@@ -4413,6 +4410,7 @@ class SendrecvmsgUnixStreamTestBase(SendrecvmsgConnectedBase,
44134410
ConnectedStreamTestMixin, UnixStreamBase):
44144411
pass
44154412

4413+
@unittest.skipIf(sys.platform == "darwin", "flaky on macOS")
44164414
@requireAttrs(socket.socket, "sendmsg")
44174415
@requireAttrs(socket, "AF_UNIX")
44184416
class SendmsgUnixStreamTest(SendmsgStreamTests, SendrecvmsgUnixStreamTestBase):

0 commit comments

Comments
 (0)
0