Python: Add test for wrong exception type

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-05-14 15:42:52 +02:00
parent d9d86e1f56
commit 7b004c3746

View File

@@ -118,4 +118,8 @@ class OK(object):
raise StopIteration
def __bool__(self):
raise TypeError
raise TypeError
class BadBool(object):
def __bool__(self):
raise ZeroDivisionError()