summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.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_configuration.py
parent47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff)
downloadunit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz
unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2
Tests: removed unused variables.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r--test/test_configuration.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index e3ddc891..d774ceb3 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -25,7 +25,7 @@ class TestConfiguration(TestControl):
def test_json_unicode(self):
assert 'success' in self.conf(
- u"""
+ """
{
"ap\u0070": {
"type": "\u0070ython",
@@ -64,7 +64,7 @@ class TestConfiguration(TestControl):
def test_json_unicode_number(self):
assert 'success' in self.conf(
- u"""
+ """
{
"app": {
"type": "python",
@@ -252,7 +252,7 @@ class TestConfiguration(TestControl):
)
def test_listeners_port_release(self):
- for i in range(10):
+ for _ in range(10):
fail = False
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)