Skip to content

Commit e5eadf9

Browse files
yoffRasmusWL
andauthored
Update python/ql/test/query-tests/Functions/general/protocols.py
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent d9d86e1 commit e5eadf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,7 @@ def __call__(self):
117117
yield 0
118118
raise StopIteration
119119

120+
# __bool__ returns `True` by default, so raising `TypeError` should not give an alert
121+
# FP reported in https://github.com/github/codeql/issues/2388
120122
def __bool__(self):
121-
raise TypeError
123+
raise TypeError

0 commit comments

Comments
 (0)