From bb59a4f8d6e99834dc10a51dd2db4be485e219b5 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Tue, 22 Aug 2023 13:23:23 +0200 Subject: [PATCH] Fixed conf test with isinstance --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 680942f..6626373 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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