summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls_conf_command.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_tls_conf_command.py
parent47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff)
downloadunit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz
unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2
Tests: removed unused variables.
Diffstat (limited to 'test/test_tls_conf_command.py')
-rw-r--r--test/test_tls_conf_command.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_tls_conf_command.py b/test/test_tls_conf_command.py
index 605848ea..f2238574 100644
--- a/test/test_tls_conf_command.py
+++ b/test/test_tls_conf_command.py
@@ -8,7 +8,7 @@ class TestTLSConfCommand(TestApplicationTLS):
prerequisites = {'modules': {'openssl': 'any'}}
@pytest.fixture(autouse=True)
- def setup_method_fixture(self, request):
+ def setup_method_fixture(self):
self.certificate()
assert 'success' in self.conf(
@@ -35,7 +35,7 @@ class TestTLSConfCommand(TestApplicationTLS):
# Set one conf_commands (disable protocol).
- (resp, sock) = self.get_ssl(start=True)
+ (_, sock) = self.get_ssl(start=True)
shared_ciphers = sock.shared_ciphers()
protocols = list(set(c[1] for c in shared_ciphers))
@@ -55,7 +55,7 @@ class TestTLSConfCommand(TestApplicationTLS):
sock.close()
if len(protocols) > 1:
- (resp, sock) = self.get_ssl(start=True)
+ (_, sock) = self.get_ssl(start=True)
cipher = sock.cipher()
assert cipher[1] != protocol, 'new protocol used'
@@ -82,7 +82,7 @@ class TestTLSConfCommand(TestApplicationTLS):
), 'cipher disabled'
if len(ciphers) > 1:
- (resp, sock) = self.get_ssl(start=True)
+ (_, sock) = self.get_ssl(start=True)
cipher_new = sock.cipher()
assert cipher_new[1] == cipher[1], 'previous protocol used'