tests: filterwarnings: do not crash with "(rm_rf)" warning

Ref: https://github.com/pytest-dev/pytest/issues/5974
This commit is contained in:
Daniel Hahler 2019-10-18 17:22:56 +02:00
parent 813ef9e88f
commit 6b2bae9392
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@ filterwarnings =
error
default:Using or importing the ABCs:DeprecationWarning:unittest2.*
ignore:Module already imported so cannot be rewritten:pytest.PytestWarning
# https://github.com/pytest-dev/pytest/issues/5974
default:\(rm_rf\) error removing.*:pytest.PytestWarning
# produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8).
ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))
# produced by pytest-xdist