diff --git a/pulp/tests/test_pulp.py b/pulp/tests/test_pulp.py index a0782104..ab72dfa3 100644 --- a/pulp/tests/test_pulp.py +++ b/pulp/tests/test_pulp.py @@ -2410,7 +2410,7 @@ def pulpTestCheck( ) if sol is not None: for v, x in sol.items(): - if abs(v.varValue - x) > eps: + if v.varValue is not None and abs(v.varValue - x) > eps: dumpTestProblem(prob) raise PulpError( "Tests failed for solver {}:\nvar {} == {} != {}".format(