Use isinstance in unit tests for type checks (#80906)

This commit is contained in:
Matt Clay
2023-05-26 19:25:26 -07:00
committed by GitHub
parent 585b82838b
commit 43c31c5dc2
2 changed files with 2 additions and 2 deletions

View File

@ -67,4 +67,4 @@ def test_invalid_strings_with_exceptions(am, code, expected, exception):
if exception is None:
assert res[1] == exception
else:
assert type(res[1]) == exception
assert isinstance(res[1], exception)