Skip to content

Commit

Permalink
Merging pull request 126
Browse files Browse the repository at this point in the history
Signed-off-by: Lukáš Doktor <[email protected]>

* github.com:autotest/aexpect:
  style: Ignore long-line
  requirements: Bump newer pycodestyle version
  requirements: Add setuptools
  • Loading branch information
ldoktor committed Dec 11, 2023
2 parents b24c729 + 45187d0 commit 9f8cde3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aexpect/ops_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) {{
Expand All @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion requirements-travis.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pycodestyle==2.4.0
setuptools==69.0.2
pycodestyle==2.11.1
inspektor==0.5.3

0 comments on commit 9f8cde3

Please sign in to comment.