File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -500,23 +500,6 @@ async def start_server():
500500
501501 self .loop .run_until_complete (start_server ())
502502
503- def test_connect_silent_cancellation (self ):
504- logger = logging .getLogger ('asyncio' )
505-
506- srv_sock = socket .socket ()
507- with srv_sock , unittest .mock .patch .object (logger , 'error' ) as log :
508- srv_sock .bind (('127.0.0.1' , 0 ))
509-
510- with self .assertRaises (asyncio .TimeoutError ):
511- self .loop .run_until_complete (
512- asyncio .wait_for (self .loop .create_connection (
513- asyncio .Protocol , * srv_sock .getsockname ()),
514- loop = self .loop , timeout = 0.1 ))
515-
516- self .loop .run_until_complete (asyncio .sleep (0 , loop = self .loop ))
517-
518- log .assert_not_called ()
519-
520503
521504class Test_UV_TCP (_TestTCP , tb .UVTestCase ):
522505
You can’t perform that action at this time.
0 commit comments