Skip to content

Commit

Permalink
Stop hanging tests after 5min
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jun 24, 2024
1 parent 3f847b6 commit f7ae976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions brian2/tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ filterwarnings =
ignore:BaseException:DeprecationWarning
ignore:invalid value:RuntimeWarning
ignore:divide by zero:RuntimeWarning

# Fail tests after 5 minutes
timeout = 300
2 changes: 1 addition & 1 deletion numpy2.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]

[project.optional-dependencies]
test = ['pytest', 'pytest-xdist>=1.22.3', 'pytest-cov>=2.0']
test = ['pytest', 'pytest-xdist>=1.22.3', 'pytest-cov>=2.0', 'pytest-timeout']
docs = ['sphinx>=7', 'ipython>=5', 'sphinx-tabs']

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]

[project.optional-dependencies]
test = ['pytest', 'pytest-xdist>=1.22.3', 'pytest-cov>=2.0']
test = ['pytest', 'pytest-xdist>=1.22.3', 'pytest-cov>=2.0', 'pytest-timeout']
docs = ['sphinx>=7', 'ipython>=5', 'sphinx-tabs']

[project.urls]
Expand Down

0 comments on commit f7ae976

Please sign in to comment.