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 b2d4e06 commit d1c389dCopy full SHA for d1c389d
test/runtests.jl
@@ -5,11 +5,23 @@ const MP = MultivariatePolynomials
5
6
include("utils.jl")
7
8
-import DynamicPolynomials
9
-Mod = DynamicPolynomials
10
-include("commutativetests.jl")
11
-include("noncommutativetests.jl")
12
-
13
-import TypedPolynomials
14
-Mod = TypedPolynomials
15
+# Taken from JuMP/test/solvers.jl
+function try_import(name::Symbol)
+ try
+ @eval import $name
+ return true
+ catch e
+ return false
+ end
16
+end
17
+
18
+if try_import(:DynamicPolynomials)
19
+ Mod = DynamicPolynomials
20
+ include("commutativetests.jl")
21
+ include("noncommutativetests.jl")
22
23
24
+if try_import(:TypedPolynomials)
25
+ Mod = TypedPolynomials
26
27
0 commit comments