Skip to content

Commit 78817f1

Browse files
committed
Merge branch 'develop' into dev-add-python3.14
2 parents 21aa543 + 47cabe5 commit 78817f1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_app_bokeh.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import multiprocessing
1010
import re
1111
import shutil
12+
import sys
1213
import time
1314
import types
1415
from pathlib import Path
@@ -225,18 +226,21 @@ def doc(data_path: dict[str, object]) -> Generator[Document, object, None]:
225226
p = multiprocessing.Process(target=run_app, daemon=True)
226227
p.start()
227228
# wait until server is ready
229+
# Increase timeout for Python 3.14+ to account for stricter multiprocessing
230+
timeout = 30 if sys.version_info >= (3, 14) else 10
228231
start = time.time()
229232
url = f"http://127.0.0.1:{main.port}/tileserver/session_id"
233+
230234
while True:
231235
try:
232236
resp = requests.get(url, timeout=1)
233237
if resp.status_code == 200:
234238
break
235239
except requests.RequestException:
236240
pass
237-
if time.time() - start > 10:
241+
if time.time() - start > timeout:
238242
p.terminate()
239-
msg = f"Tileserver failed to start within 10s: {url}"
243+
msg = f"Tileserver failed to start within {timeout}s: {url}"
240244
raise RuntimeError(msg)
241245
time.sleep(0.2)
242246

0 commit comments

Comments
 (0)