mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Add false negative test case.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user