Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bed096d

Browse filesBrowse files
skip test if sendmsg does not exists
1 parent 2725334 commit bed096d
Copy full SHA for bed096d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎Lib/test/test_asyncio/test_selector_events.py

Copy file name to clipboardExpand all lines: Lib/test/test_asyncio/test_selector_events.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ def test_write_sendmsg_no_data(self):
746746
self.assertFalse(self.sock.sendmsg.called)
747747
self.assertEqual(list_to_buffer([b'data']), transport._buffer)
748748

749+
@unittest.skipUnless(hasattr(socket.socket, 'sendmsg'), 'no sendmsg')
749750
def test_write_sendmsg_full(self):
750751
data = memoryview(b'data')
751752
self.sock.sendmsg = mock.Mock()
@@ -758,7 +759,9 @@ def test_write_sendmsg_full(self):
758759
self.assertTrue(self.sock.sendmsg.called)
759760
self.assertFalse(self.loop.writers)
760761

762+
@unittest.skipUnless(hasattr(socket.socket, 'sendmsg'), 'no sendmsg')
761763
def test_write_sendmsg_partial(self):
764+
762765
data = memoryview(b'data')
763766
self.sock.sendmsg = mock.Mock()
764767
# Sent partial data

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.