fix(tests): use cross-platform pytest-timeout method (#39881)

This commit is contained in:
Rod Boev 2026-06-09 14:17:59 -04:00 committed by GitHub
parent 1febb08240
commit 5750d058fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -327,12 +327,12 @@ markers = [
"integration: marks tests requiring external services (API keys, Modal, etc.)",
"real_concurrent_gate: opt out of the autouse stub that disables _detect_concurrent_hermes_instances",
]
# pytest-timeout: per-test 30s hard cap with signal method.
# pytest-timeout: per-test 30s hard cap with cross-platform thread method.
# This is the fallback inside each per-file pytest subprocess (see
# scripts/run_tests_parallel.py). Per-file isolation gives every test
# file a fresh Python interpreter; pytest-timeout catches Python-level
# hangs within a file.
addopts = "-m 'not integration' --timeout=30 --timeout-method=signal"
addopts = "-m 'not integration' --timeout=30 --timeout-method=thread"
[tool.ty.environment]
python-version = "3.13"