Add a failing test to ensure not everything matches by accident
This commit is contained in:
parent
623b3982b0
commit
a326fa22c6
|
@ -836,12 +836,15 @@ class TestNodekeywords:
|
||||||
def test(self):
|
def test(self):
|
||||||
assert True
|
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"):
|
for expression in ("specifictopic", "SPECIFICTOPIC", "SpecificTopic"):
|
||||||
reprec = testdir.inline_run("-k " + expression)
|
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(
|
COLLECTION_ERROR_PY_FILES = dict(
|
||||||
|
|
Loading…
Reference in New Issue