Skip to content

Commit

Permalink
Fail tests on all warnings (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Feb 4, 2024
1 parent 33653d4 commit b3ae13a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ testpaths = ["pyscenarios/tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
filterwarnings = [
"error",
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
]

[tool.coverage.report]
show_missing = true
Expand Down
1 change: 1 addition & 0 deletions pyscenarios/tests/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pyscenarios import tail_dependence


@pytest.mark.filterwarnings("ignore:invalid value encountered in (true_)?divide")
@pytest.mark.parametrize("chunk", [False, True])
def test_tail_dependence(chunk):
x = [0.1, 0.3, 0.4, 0.5, 0.6, 0.8, 0.9]
Expand Down

0 comments on commit b3ae13a

Please sign in to comment.