File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments