mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Add test for wrong exception type
This commit is contained in:
@@ -118,4 +118,8 @@ class OK(object):
|
||||
raise StopIteration
|
||||
|
||||
def __bool__(self):
|
||||
raise TypeError
|
||||
raise TypeError
|
||||
|
||||
class BadBool(object):
|
||||
def __bool__(self):
|
||||
raise ZeroDivisionError()
|
||||
Reference in New Issue
Block a user