summaryrefslogtreecommitdiffhomepage
path: root/test/test_access_log.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 14:26:12 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 14:26:12 +0100
commit3e4fa1e2022970dee003bea0932ea0c10f8744ba (patch)
treed23b32b9a6e33dc57694547f1ec1427f1a19a01a /test/test_access_log.py
parent47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff)
downloadunit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz
unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2
Tests: removed unused variables.
Diffstat (limited to '')
-rw-r--r--test/test_access_log.py10
1 files changed, 5 insertions, 5 deletions
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)