diff --git a/docker/set-python-version.sh b/docker/set-python-version.sh index a349c719..6331e982 100644 --- a/docker/set-python-version.sh +++ b/docker/set-python-version.sh @@ -6,7 +6,10 @@ PYTHON_VERSION=${1} function parse_version { local version=${1} - if [[ ${version} == 3.13* ]] + if [[ ${version} == 3.14* ]] + then + echo "cp314-cp314" + elif [[ ${version} == 3.13* ]] then echo "cp313-cp313" elif [[ ${version} == 3.12* ]] diff --git a/tests/test_firehose.py b/tests/test_firehose.py index dd8d00d2..cce974e4 100644 --- a/tests/test_firehose.py +++ b/tests/test_firehose.py @@ -24,7 +24,10 @@ def _ensure_timeout(f, timeout=3): # This test is useful, so if you know how to fix this under e.g. Windows, let's # fix it! if platform == "linux" or platform == "linux2": - p = multiprocessing.Process(target=f) + # way of starting process on Linux changed in python 3.14 from fork to forkserver: https://github.com/python/cpython/issues/84559 + # to keep this test working on newer python versions we specify the "fork" method explicitly + ctx = multiprocessing.get_context("fork") + p = ctx.Process(target=f) p.start() p.join(timeout)