File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -3309,19 +3309,12 @@ def run(addr, authkey):
33093309 client = self .connection .Client (addr , authkey = authkey )
33103310 client .send (1729 )
33113311
3312- timeout_in_s = 2
33133312 key = b""
33143313
3315- try :
3316- # wait 2s so the test won't hang forever in case of regression
3317- signal .signal (signal .SIGALRM , handler )
3318- signal .alarm (timeout_in_s )
3319- with self .connection .Listener (authkey = key ) as listener :
3320- threading .Thread (target = run , args = (listener .address , key )).start ()
3321- with listener .accept () as d :
3322- self .assertEqual (d .recv (), 1729 )
3323- finally :
3324- signal .alarm (0 )
3314+ with self .connection .Listener (authkey = key ) as listener :
3315+ threading .Thread (target = run , args = (listener .address , key )).start ()
3316+ with listener .accept () as d :
3317+ self .assertEqual (d .recv (), 1729 )
33253318
33263319 if self .TYPE == 'processes' :
33273320 self .assertRaises (OSError , listener .accept )
You can’t perform that action at this time.
0 commit comments