From afac7fb650ffa32c146d4107d653f8f711c71cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Tue, 23 Jan 2024 20:11:16 +0100 Subject: [PATCH] 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). --- spacy/tests/test_misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/test_misc.py b/spacy/tests/test_misc.py index b1b4faa88..d2a41ff0f 100644 --- a/spacy/tests/test_misc.py +++ b/spacy/tests/test_misc.py @@ -486,8 +486,8 @@ def test_to_ternary_int(): def test_find_available_port(): host = "0.0.0.0" - port = 5000 - assert find_available_port(port, host) == port, "Port 5000 isn't free" + port = 5001 + assert find_available_port(port, host) == port, "Port 5001 isn't free" from wsgiref.simple_server import demo_app, make_server