Skip to content

Commit cb828eb

Browse files
authored
tox.ini: clean up filterwarnings (#5633)
tox.ini: clean up filterwarnings
2 parents c98e7ae + f0feb6c commit cb828eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,17 @@ filterwarnings =
133133
ignore::pytest.RemovedInPytest4Warning
134134
default:Using or importing the ABCs:DeprecationWarning:unittest2.*
135135
ignore:Module already imported so cannot be rewritten:pytest.PytestWarning
136-
# produced by path.local
137-
ignore:bad escape.*:DeprecationWarning:re
138-
# produced by path.readlines
139-
ignore:.*U.*mode is deprecated:DeprecationWarning
136+
# produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8).
137+
ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))
140138
# produced by pytest-xdist
141139
ignore:.*type argument to addoption.*:DeprecationWarning
142140
# produced by python >=3.5 on execnet (pytest-xdist)
143141
ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning
144142
# pytest's own futurewarnings
145143
ignore::pytest.PytestExperimentalApiWarning
146144
# Do not cause SyntaxError for invalid escape sequences in py37.
145+
# Those are caught/handled by pyupgrade, and not easy to filter with the
146+
# module being the filename (with .py removed).
147147
default:invalid escape sequence:DeprecationWarning
148148
# ignore use of unregistered marks, because we use many to test the implementation
149149
ignore::_pytest.warning_types.PytestUnknownMarkWarning

0 commit comments

Comments
 (0)