Skip to content

Commit 3d8b81f

Browse files
committed
Re-integrate pytest-timeout plugin
1 parent bcc4d0a commit 3d8b81f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ envlist =
88
lint
99
docs
1010

11+
[pytest]
12+
timeout = 10
13+
1114
[flake8]
1215
ignore =
1316
__init__.py E402 F401
@@ -21,7 +24,7 @@ deps =
2124
-e.[test]
2225
commands =
2326
pytest --basetemp={envtmpdir} --cache-clear -sv --cov \
24-
{posargs:-n 8}
27+
--timeout-method=thread {posargs:-n 8}
2528

2629
[testenv:lint]
2730
deps =

0 commit comments

Comments
 (0)