File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -173,16 +173,11 @@ def test_equation(model):
173173 assert equat ._lhs == 0.0
174174
175175def 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 )
You can’t perform that action at this time.
0 commit comments