diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py index 5a77454ce..22afeffad 100644 --- a/tests/protocols/test_websocket.py +++ b/tests/protocols/test_websocket.py @@ -1125,7 +1125,7 @@ async def websocket_connect(self, message): await self.send({"type": "websocket.accept"}) async def open_connection(url): - async with websockets.connect(url) as websocket: + async with websockets.client.connect(url) as websocket: return websocket.open async def app_wrapper(scope, receive, send):