Skip to content

Commit dcbb9c1

Browse files
committed
tox.ini: clean up filterwarnings
- path.local/path.readlines is not used anymore - enhance doc for "invalid escape sequence" filter
1 parent c98e7ae commit dcbb9c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,15 @@ 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
140136
# produced by pytest-xdist
141137
ignore:.*type argument to addoption.*:DeprecationWarning
142138
# produced by python >=3.5 on execnet (pytest-xdist)
143139
ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning
144140
# pytest's own futurewarnings
145141
ignore::pytest.PytestExperimentalApiWarning
146142
# Do not cause SyntaxError for invalid escape sequences in py37.
143+
# Those are caught/handled by pyupgrade, and not easy to filter with the
144+
# module being the filename (with .py removed).
147145
default:invalid escape sequence:DeprecationWarning
148146
# ignore use of unregistered marks, because we use many to test the implementation
149147
ignore::_pytest.warning_types.PytestUnknownMarkWarning

0 commit comments

Comments
 (0)