File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1917,6 +1917,7 @@ def test_nonbinary_file(self):
1917
1917
1918
1918
def test_nonstream_socket (self ):
1919
1919
sock = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
1920
+ sock .setblocking (False )
1920
1921
self .addCleanup (sock .close )
1921
1922
with self .assertRaisesRegex (ValueError , "only SOCK_STREAM type" ):
1922
1923
self .run_loop (self .loop .sock_sendfile (sock , self .file ))
Original file line number Diff line number Diff line change @@ -2448,7 +2448,7 @@ async def coro():
2448
2448
self .loop = asyncio .new_event_loop ()
2449
2449
try :
2450
2450
fut = Fut (loop = self .loop )
2451
- self .loop .call_later (0.1 , fut .set_result ( 1 ) )
2451
+ self .loop .call_later (0.1 , fut .set_result , 1 )
2452
2452
task = asyncio .Task (coro (), loop = self .loop )
2453
2453
res = self .loop .run_until_complete (task )
2454
2454
finally :
You can’t perform that action at this time.
0 commit comments