Skip to content

Commit 40f2d7d

Browse files
committed
Use pytest-timeout to timeout tests after 10s
1 parent 40388f2 commit 40f2d7d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[flake8]
22
ignore = D211,E731,D401
3+
4+
[tool:pytest]
5+
testpaths = test
6+
timeout = 10

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ envlist =
77
deps =
88
pytest
99
pytest-xdist
10+
pytest-timeout
1011
pyuv: pyuv
1112
passenv = PYTEST_ADDOPTS
1213
commands = python -m pytest {posargs}

0 commit comments

Comments
 (0)