diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
commit | 3e4fa1e2022970dee003bea0932ea0c10f8744ba (patch) | |
tree | d23b32b9a6e33dc57694547f1ec1427f1a19a01a /test/unit/utils.py | |
parent | 47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff) | |
download | unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2 |
Tests: removed unused variables.
Diffstat (limited to 'test/unit/utils.py')
-rw-r--r-- | test/unit/utils.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/utils.py b/test/unit/utils.py index 985801e2..27e7dadc 100644 --- a/test/unit/utils.py +++ b/test/unit/utils.py @@ -24,7 +24,7 @@ def public_dir(path): def waitforfiles(*files, timeout=50): - for i in range(timeout): + for _ in range(timeout): wait = False for f in files: @@ -41,10 +41,10 @@ def waitforfiles(*files, timeout=50): def waitforglob(pattern, count=1, timeout=50): - for i in range(timeout): + for _ in range(timeout): n = 0 - for f in glob.glob(pattern): + for _ in glob.glob(pattern): n += 1 if n == count: @@ -56,7 +56,7 @@ def waitforglob(pattern, count=1, timeout=50): def waitforsocket(port): - for i in range(50): + for _ in range(50): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: try: sock.settimeout(5) @@ -102,7 +102,7 @@ def sysctl(): def waitformount(template, timeout=50): - for i in range(timeout): + for _ in range(timeout): if findmnt().find(template) != -1: return True @@ -112,7 +112,7 @@ def waitformount(template, timeout=50): def waitforunmount(template, timeout=50): - for i in range(timeout): + for _ in range(timeout): if findmnt().find(template) == -1: return True |