mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Test: __bool__ does not raise TypeError by default
This commit is contained in:
@@ -116,3 +116,6 @@ class OK(object):
|
||||
def __call__(self):
|
||||
yield 0
|
||||
raise StopIteration
|
||||
|
||||
def __bool__(self):
|
||||
raise TypeError
|
||||
Reference in New Issue
Block a user