Skip to content

Commit e5bffd4

Browse files
committed
remove forgotten stuff
1 parent b6cac69 commit e5bffd4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/test_expr.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,11 @@ def test_equation(model):
173173
assert equat._lhs == 0.0
174174

175175
def test_rpow_constant_base(model):
176-
# m, x, y, z = model
177-
m = Model()
178-
x = m.addVar("x")
179-
y = m.addVar("y")
180-
z = m.addVar("z")
176+
m, x, y, z = model
181177
a = 2**x
182178
b = exp(x * log(2.0))
183179
assert isinstance(a, GenExpr)
184-
# Structural equality is not implemented; compare textual forms
185-
assert repr(a) == repr(b)
180+
assert repr(a) == repr(b) # Structural equality is not implemented; compare strings
186181
m.addCons(2**x <= 1)
187182

188183
with pytest.raises(ValueError):
@@ -193,5 +188,3 @@ def test_rpow_constant_base(model):
193188
assert isinstance(equat.expr, GenExpr)
194189
assert equat._lhs == equat._rhs
195190
assert equat._lhs == 0.0
196-
197-
test_rpow_constant_base(None)

0 commit comments

Comments
 (0)