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 f51090d commit 7e01f9eCopy full SHA for 7e01f9e
mypyc/test-data/fixtures/testutil.py
@@ -45,7 +45,7 @@ def assertRaises(typ: type, msg: str = '') -> Iterator[None]:
45
try:
46
yield
47
except Exception as e:
48
- assert isinstance(e, typ), f"{e!r} is not a {typ.__name__}"
+ assert type(e) is typ, f"{e!r} is not a {typ.__name__}"
49
assert msg in str(e), f'Message "{e}" does not match "{msg}"'
50
else:
51
assert False, f"Expected {typ.__name__} but got no exception"
0 commit comments