Change PytestRemovedIn7Warning to error by default

Per our backward compatibility policy.

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Ran Benita
2021-11-14 23:39:56 +02:00
parent 128f29ee35
commit a172a4141b
5 changed files with 35 additions and 10 deletions
+3 -1
View File
@@ -682,7 +682,9 @@ class TestTerminalFunctional:
pass
"""
)
result = pytester.runpytest("-k", "test_two:", testpath)
result = pytester.runpytest(
"-Wignore::pytest.PytestRemovedIn7Warning", "-k", "test_two:", testpath
)
result.stdout.fnmatch_lines(
["collected 3 items / 1 deselected / 2 selected", "*test_deselected.py ..*"]
)