Skip to content

Commit 6a35c6b

Browse files
committed
Test: __bool__ does not raise TypeError by default
1 parent 451ae7b commit 6a35c6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/test/query-tests/Functions/general/protocols.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,6 @@ class OK(object):
116116
def __call__(self):
117117
yield 0
118118
raise StopIteration
119+
120+
def __bool__(self):
121+
raise TypeError

0 commit comments

Comments
 (0)