Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilReinhold committed Aug 28, 2024
1 parent 571a4dc commit e0b4057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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")
Expand Down

0 comments on commit e0b4057

Please sign in to comment.