Remove deprecated -k foobar: syntax

This commit is contained in:
Ran Benita
2021-12-07 22:13:58 +02:00
parent 927d9d274f
commit 4a45a5e983
5 changed files with 2 additions and 51 deletions
+1 -3
View File
@@ -682,9 +682,7 @@ class TestTerminalFunctional:
pass
"""
)
result = pytester.runpytest(
"-Wignore::pytest.PytestRemovedIn7Warning", "-k", "test_two:", testpath
)
result = pytester.runpytest("-k", "test_t", testpath)
result.stdout.fnmatch_lines(
["collected 3 items / 1 deselected / 2 selected", "*test_deselected.py ..*"]
)