We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71fe0e commit d528b9dCopy full SHA for d528b9d
test_asserts.py
@@ -80,7 +80,7 @@ def __enter__(self):
80
def __exit__(self, exc_type, exc_val, exc_tb):
81
if exc_type is None:
82
raise AssertionError("no AssertionError raised")
83
- if exc_type != AssertionError:
+ if not issubclass(exc_type, AssertionError):
84
return False
85
if str(exc_val) != expected_message:
86
raise AssertionError(
0 commit comments