Fixed conf test with isinstance

This commit is contained in:
Enrico Zimuel 2023-08-22 13:23:23 +02:00
parent f26fb8a430
commit bb59a4f8d6
No known key found for this signature in database
GPG Key ID: 6CB203F6934A69F1

View File

@ -102,7 +102,7 @@ class SymmetricAPIChecker:
def check_exception(self, ed_exc, pd_exc):
"""Checks that either an exception was raised or not from both eland and pandas"""
assert (ed_exc is None) == (pd_exc is None) and type(ed_exc) == type(pd_exc)
assert (ed_exc is None) == (pd_exc is None) and isinstance(ed_exc, type(pd_exc))
if pd_exc is not None:
raise pd_exc