Test: __bool__ does not raise TypeError by default

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-05-12 15:28:12 +02:00
parent 451ae7b762
commit 6a35c6b4d4

View File

@@ -116,3 +116,6 @@ class OK(object):
def __call__(self):
yield 0
raise StopIteration
def __bool__(self):
raise TypeError