test_find_available_port: use port 5001 (#13255)

macOS now uses port 5000 for the AirPlay receiver functionality, so this
test will always fail on a macOS desktop (unless AirPlay receiver
functionality is disabled like in CI).
This commit is contained in:
Daniël de Kok 2024-01-23 20:11:16 +01:00 committed by GitHub
parent 128197a5fc
commit afac7fb650
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -486,8 +486,8 @@ def test_to_ternary_int():
def test_find_available_port(): def test_find_available_port():
host = "0.0.0.0" host = "0.0.0.0"
port = 5000 port = 5001
assert find_available_port(port, host) == port, "Port 5000 isn't free" assert find_available_port(port, host) == port, "Port 5001 isn't free"
from wsgiref.simple_server import demo_app, make_server from wsgiref.simple_server import demo_app, make_server