From 83388ffb311c09a5c3f530920a644f159f2dc312 Mon Sep 17 00:00:00 2001
From: Matt Wala <wala1@illinois.edu>
Date: Sat, 7 Feb 2015 14:19:48 -0600
Subject: [PATCH] Use issubclass rather than isinstance to check what kind of
 class we have.

---
 test/test_kernels.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/test_kernels.py b/test/test_kernels.py
index 44861576..ad53759e 100644
--- a/test/test_kernels.py
+++ b/test/test_kernels.py
@@ -339,8 +339,10 @@ def test_translations(ctx_getter, knl, local_expn_class, mpole_expn_class):
 
     del eval_offset
 
+    from sumpy.expansion import VolumeTaylorExpansionBase
+
     if isinstance(knl, HelmholtzKernel) and \
-           isinstance(local_expn_class, VolumeTaylorLocalExpansion):
+           issubclass(local_expn_class, VolumeTaylorExpansionBase):
         # FIXME: Embarrassing--but we run out of memory for higher orders.
         orders = [2, 3]
     else:
-- 
GitLab