Skip to content

Commit

Permalink
test_find_available_port: use port 5001 (explosion#13255)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
danieldk authored Jan 23, 2024
1 parent 128197a commit afac7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spacy/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit afac7fb

Please sign in to comment.