Tests: don't try to return response when "no_recv" is True.

This commit is contained in:
Andrei Zeliankou
2022-10-11 13:49:10 +01:00
parent 8d976cac52
commit 8e1e047191
14 changed files with 30 additions and 50 deletions

View File

@@ -1485,7 +1485,7 @@ class TestRouting(TestApplicationPython):
def test_routes_source_port(self):
def sock_port():
_, sock = self.http(b'', start=True, raw=True, no_recv=True)
sock = self.http(b'', raw=True, no_recv=True)
port = sock.getsockname()[1]
return (sock, port)