8000 skip flaky socket test in macOS · RustPython/RustPython@5fd5939 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fd5939

Browse files
committed
skip flaky socket test in macOS
1 parent e5ca631 commit 5fd5939

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_socket.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,6 +2881,7 @@ 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")
28842885
def testSendmsgArray(self):
28852886
# Send data from an array instead of the usual bytes object.
28862887
self.assertEqual(self.serv_sock.recv(len(MSG)), MSG)
@@ -2889,6 +2890,7 @@ def _testSendmsgArray(self):
28892890
self.assertEqual(self.sendmsgToServer([array.array("B", MSG)]),
28902891
len(MSG))
28912892

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

2956+
@unittest.skipIf(sys.platform == "darwin", "flaky on macOS")
29542957
def testSendmsgExcessCmsgReject(self):
29552958
# Check that sendmsg() rejects excess ancillary data items
29562959
# when the number that can be sent is limited.

0 commit comments

Comments
 (0)
0