Skip to content

Commit

Permalink
Add a filter to pytest to avoid annoying deprecation warnings raised by
Browse files Browse the repository at this point in the history
third party code
  • Loading branch information
ArneVoss committed Jan 10, 2024
1 parent 4359ddd commit 6310295
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[pytest]
filterwarnings =
# Filter to avoid annoying deprecation warnings raised by third party code
# Step 1: ignore all deprecation warnings
ignore::DeprecationWarning::
# Step 2: re-activate deprecation warnings for own modules
default::DeprecationWarning:loadskernel.*
default::DeprecationWarning:loadsviewer.*
default::DeprecationWarning:modelviewer.*
default::DeprecationWarning:tests.*

0 comments on commit 6310295

Please sign in to comment.