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

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2020-05-14 07:34:53 +02:00
committed by GitHub
parent d9d86e1f56
commit e5eadf9126

View File

@@ -117,5 +117,7 @@ class OK(object):
yield 0
raise StopIteration
# __bool__ returns `True` by default, so raising `TypeError` should not give an alert
# FP reported in https://github.com/github/codeql/issues/2388
def __bool__(self):
raise TypeError
raise TypeError