Cover assertions with messages when enable_assertion_pass_hook is enabled

This commit is contained in:
Bruno Oliveira
2019-06-26 20:46:31 -03:00
parent 629eb3ec6a
commit 2ea22218ff

View File

@@ -1363,6 +1363,10 @@ class TestAssertionPass:
d=0
assert a+b == c+d
# cover failing assertions with a message
def test_fails():
assert False, "assert with message"
"""
)
result = testdir.runpytest()