Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ableytner committed Mar 13, 2024
1 parent 2fa13c2 commit af7ce96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcserverwrapper/test/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def assert_port_is_free(port: int = 25565, strict=True) -> bool:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
try:
s.bind(("127.0.0.1", port))
return True
# windows error
except PermissionError:
if strict:
Expand All @@ -65,6 +64,7 @@ def assert_port_is_free(port: int = 25565, strict=True) -> bool:
else:
# something else raised the socket.error exception
raise e
return True

def run_vanilla_test_url(url, offline_mode=False, version_name=None):
"""Run all tests for a single vanilla minecraft server url"""
Expand Down

0 comments on commit af7ce96

Please sign in to comment.