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 e9e06d8 commit 967d49eCopy full SHA for 967d49e
symengine/tests/test_matrices.py
@@ -10,6 +10,15 @@
10
HAVE_NUMPY = True
11
except ImportError:
12
HAVE_NUMPY = False
13
+
14
+try:
15
+ import sympy
16
+ from sympy.core.cache import clear_cache
17
+ import atexit
18
+ atexit.register(clear_cache)
19
+ have_sympy = True
20
+except ImportError:
21
+ have_sympy = False
22
23
24
def test_init():
@@ -742,7 +751,7 @@ def test_repr_latex():
742
751
assert isinstance(latex_string, str)
743
752
init_printing(False)
744
753
745
-
754
+@unittest.skipIf(not have_sympy, "SymPy not installed")
746
755
def test_simplify():
747
756
A = ImmutableMatrix([1])
748
757
assert type(A.simplify()) == type(A)
0 commit comments