Skip to content

Commit

Permalink
Ignore pytest-xdist's depracation warning
Browse files Browse the repository at this point in the history
It is coming from `pytest-cov`'s usage of the deprecated `rsyncdir`
setting use.

This patch can be reverted once
pytest-dev/pytest-cov#558 is in and released.

Ref: pytest-dev/pytest-cov#557
  • Loading branch information
webknjaz committed Nov 4, 2022
1 parent f8267e2 commit 50c3912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ filterwarnings =
# `cgi` is deprecated via https://peps.python.org/pep-0594/#cgi
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:

# FIXME: drop this once `pytest-cov` is updated.
# Ref: https://github.com/pytest-dev/pytest-cov/issues/557
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning

# https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files
junit_duration_report = call
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
Expand Down

0 comments on commit 50c3912

Please sign in to comment.