Tests: removed unused variables.

This commit is contained in:
Andrei Zeliankou
2023-05-25 14:26:12 +01:00
parent 47cdfb6f30
commit 3e4fa1e202
34 changed files with 87 additions and 91 deletions

View File

@@ -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)