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):
746
746
self .assertFalse (self .sock .sendmsg .called )
747
747
self .assertEqual (list_to_buffer ([b'data' ]), transport ._buffer )
748
748
749
+ @unittest .skipUnless (hasattr (socket .socket , 'sendmsg' ), 'no sendmsg' )
749
750
def test_write_sendmsg_full (self ):
750
751
data = memoryview (b'data' )
751
752
self .sock .sendmsg = mock .Mock ()
@@ -758,7 +759,9 @@ def test_write_sendmsg_full(self):
758
759
self .assertTrue (self .sock .sendmsg .called )
759
760
self .assertFalse (self .loop .writers )
760
761
762
+ @unittest .skipUnless (hasattr (socket .socket , 'sendmsg' ), 'no sendmsg' )
761
763
def test_write_sendmsg_partial (self ):
764
+
762
765
data = memoryview (b'data' )
763
766
self .sock .sendmsg = mock .Mock ()
764
767
# Sent partial data
You can’t perform that action at this time.
0 commit comments