Add a failing test to ensure not everything matches by accident

This commit is contained in:
Christoph Buelter 2019-12-05 17:02:18 +01:00
parent 623b3982b0
commit a326fa22c6
1 changed files with 5 additions and 2 deletions

View File

@ -836,12 +836,15 @@ class TestNodekeywords:
def test(self):
assert True
def test_failing_5():
assert False, "This should not match"
"""
)
num_all_tests_passed = 4
num_matching_tests = 4
for expression in ("specifictopic", "SPECIFICTOPIC", "SpecificTopic"):
reprec = testdir.inline_run("-k " + expression)
reprec.assertoutcome(passed=num_all_tests_passed, failed=0)
reprec.assertoutcome(passed=num_matching_tests, failed=0)
COLLECTION_ERROR_PY_FILES = dict(