Skip to content

Commit

Permalink
Enable warnings as errors for Python tests (#2288)
Browse files Browse the repository at this point in the history
As part of rapidsai/build-planning#26, warnings in Python tests will be converted to test failures


`ignore:Unknown pytest.mark.ucx:PytestUnknownMarkWarning` could be removed once #2281 is merged cc @jameslamb

Authors:
  - Matthew Roeschke (https://github.com/mroeschke)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #2288
  • Loading branch information
mroeschke authored May 8, 2024
1 parent 6b731b6 commit 4c1bf03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/pylibraft/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,8 @@ wheel.packages = ["pylibraft"]
provider = "scikit_build_core.metadata.regex"
input = "pylibraft/VERSION"
regex = "(?P<value>.*)"

[tool.pytest.ini_options]
filterwarnings = [
"error",
]
2 changes: 2 additions & 0 deletions python/raft-dask/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[pytest]
filterwarnings =
error
markers =
unit: marks unit tests
quality: marks quality tests
Expand Down

0 comments on commit 4c1bf03

Please sign in to comment.