Skip to content

Commit d910175

Browse files
authored
Merge pull request #5993 from blueyed/filterwarnings-error-removing
tests: filterwarnings: do not crash with "(rm_rf)" warning
2 parents 813ef9e + 6b2bae9 commit d910175

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ filterwarnings =
142142
error
143143
default:Using or importing the ABCs:DeprecationWarning:unittest2.*
144144
ignore:Module already imported so cannot be rewritten:pytest.PytestWarning
145+
# https://github.com/pytest-dev/pytest/issues/5974
146+
default:\(rm_rf\) error removing.*:pytest.PytestWarning
145147
# produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8).
146148
ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))
147149
# produced by pytest-xdist

0 commit comments

Comments
 (0)