From 3e4fa1e2022970dee003bea0932ea0c10f8744ba Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 25 May 2023 14:26:12 +0100 Subject: Tests: removed unused variables. --- test/test_access_log.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/test_access_log.py') diff --git a/test/test_access_log.py b/test/test_access_log.py index c29638a3..86afb628 100644 --- a/test/test_access_log.py +++ b/test/test_access_log.py @@ -32,7 +32,7 @@ class TestAccessLog(TestApplicationPython): assert self.get()['status'] == 200, 'init' - (resp, sock) = self.post( + (_, sock) = self.post( headers={ 'Host': 'localhost', 'Connection': 'keep-alive', @@ -46,7 +46,7 @@ class TestAccessLog(TestApplicationPython): self.wait_for_record(r'"POST / HTTP/1.1" 200 5') is not None ), 'keepalive 1' - resp = self.post(sock=sock, body='0123456789') + _ = self.post(sock=sock, body='0123456789') assert ( self.wait_for_record(r'"POST / HTTP/1.1" 200 10') is not None @@ -169,7 +169,7 @@ Connection: close assert self.post()['status'] == 200, 'init' - resp = self.http(b"""GE""", raw=True, read_timeout=1) + _ = self.http(b"""GE""", raw=True, read_timeout=1) time.sleep(1) @@ -193,7 +193,7 @@ Connection: close assert self.post()['status'] == 200, 'init' - resp = self.http(b"""GET / HTTP/1.1""", raw=True, read_timeout=1) + _ = self.http(b"""GET / HTTP/1.1""", raw=True, read_timeout=1) time.sleep(1) @@ -206,7 +206,7 @@ Connection: close assert self.post()['status'] == 200, 'init' - resp = self.http(b"""GET / HTTP/1.1\n""", raw=True, read_timeout=1) + _ = self.http(b"""GET / HTTP/1.1\n""", raw=True, read_timeout=1) time.sleep(1) -- cgit