Python: Add false negative test case.

This commit is contained in:
Taus Brock-Nannestad
2019-10-18 16:44:38 +02:00
parent 99b99ef2b6
commit b2f7b0921b

View File

@@ -29,3 +29,11 @@ def bar(x):
bar(True)
bar(False)
# False negative
def fn_suppression():
with suppress(Exception):
raise Exception()
return False
return True