diff --git a/aexpect/ops_windows.py b/aexpect/ops_windows.py index 8c10f33..dc0798b 100644 --- a/aexpect/ops_windows.py +++ b/aexpect/ops_windows.py @@ -503,6 +503,7 @@ def find_unused_port(session, start_port=10024): :returns: unused port that was found :rtype: int """ + # pylint: disable=C0301 output = ps_cmd(session, f""" $port = {start_port} while($true) {{ @@ -521,6 +522,7 @@ def find_unused_port(session, start_port=10024): Write-Host "::unused=$port" """) + # pylint: enable=C0301 port = re.search(r"::unused=(\d+)", output).group(1) return int(port) diff --git a/requirements-travis.txt b/requirements-travis.txt index 6338f48..631e876 100644 --- a/requirements-travis.txt +++ b/requirements-travis.txt @@ -1,2 +1,3 @@ -pycodestyle==2.4.0 +setuptools==69.0.2 +pycodestyle==2.11.1 inspektor==0.5.3