From e0b40577a13f4f2e40534f9eae85390668bf676f Mon Sep 17 00:00:00 2001 From: Phil Reinhold Date: Wed, 28 Aug 2024 11:55:32 -0700 Subject: [PATCH] fix coverage --- tests/test_directives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_directives.py b/tests/test_directives.py index 94d7d13..ae1f359 100644 --- a/tests/test_directives.py +++ b/tests/test_directives.py @@ -2655,6 +2655,7 @@ class MyFloatVar(oqpy.FloatVar): x1 = MyFloatVar(3, name="x") x2 = MyFloatVar(3, name="x") + assert not x1._expr_matches(oqpy.FloatVar(3, name="x")) assert oqpy.base.expr_matches(x1, x2) class MyFloatVarWithIgnoredData(oqpy.FloatVar): @@ -2668,7 +2669,6 @@ def _expr_matches(self, other): d2.pop("ignored") return oqpy.base.expr_matches(d1, d2) - x1 = MyFloatVarWithIgnoredData(3, name="x") x1.ignored = 1 x2 = MyFloatVarWithIgnoredData(3, name="x")