add pytest-timeout of 3 min per item (#12144)

* add pytest-timeout with timeout of 3 min

* func_only
This commit is contained in:
Sieds Lykles
2025-09-13 00:48:41 +02:00
committed by GitHub
parent 2fc0bd150b
commit 0757a9a819
2 changed files with 4 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
[pytest] [pytest]
norecursedirs = extra norecursedirs = extra
timeout = 180
timeout_method = thread
timeout_func_only = true

View File

@@ -12,6 +12,7 @@ testing_minimal = [
"torch==2.7.1", "torch==2.7.1",
"pytest", "pytest",
"pytest-xdist", "pytest-xdist",
"pytest-timeout",
"hypothesis", "hypothesis",
"z3-solver", "z3-solver",
"ml_dtypes" "ml_dtypes"