File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ run-unit-tests: lint .tox
2424 tox -e py3
2525
2626.PHONY : run-integration-tests
27- run-unit -tests : lint .tox
27+ run-integration -tests : lint .tox
2828 tox -e integration
2929
3030.PHONY : run-all-tests
Original file line number Diff line number Diff line change 55import json
66import logging
77import ssl
8- import signal
98import urllib .request
109import weakref
1110from http .client import HTTPSConnection
@@ -425,10 +424,6 @@ def _exit_tasks():
425424 for task in jasyncio .all_tasks ():
426425 task .cancel ()
427426
428- loop = jasyncio .get_running_loop ()
429- for sig in (signal .SIGINT , signal .SIGTERM ):
430- loop .add_signal_handler (sig , _exit_tasks )
431-
432427 return (await websockets .connect (
433428 url ,
434429 ssl = self ._get_ssl (cacert ),
@@ -473,11 +468,6 @@ async def close(self, to_reconnect=False):
473468 if self .proxy is not None :
474469 self .proxy .close ()
475470
476- # Remove signal handlers
477- loop = jasyncio .get_running_loop ()
478- for sig in (signal .SIGINT , signal .SIGTERM ):
479- loop .remove_signal_handler (sig )
480-
481471 async def _recv (self , request_id ):
482472 if not self .is_open :
483473 raise websockets .exceptions .ConnectionClosed (0 , 'websocket closed' )
You can’t perform that action at this time.
0 commit comments