Skip to content

Commit bb5cee6

Browse files
committed
NFC: apply black
1 parent ae10ad2 commit bb5cee6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pyomo/repn/tests/ampl/test_nlv2.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -1565,18 +1565,17 @@ def test_presolve_named_expressions(self):
15651565
m.eq = pyo.Constraint(pyo.Integers)
15661566
m.eq[1] = m.x[1] == 7
15671567
m.eq[2] = m.x[3] == 0.1 * m.subexpr[1] * m.x[2]
1568-
m.obj = pyo.Objective(expr=m.x[1]**2 + m.x[2]**2 + m.x[3]**3)
1568+
m.obj = pyo.Objective(expr=m.x[1] ** 2 + m.x[2] ** 2 + m.x[3] ** 3)
15691569

15701570
OUT = io.StringIO()
15711571
with LoggingIntercept() as LOG:
1572-
nlinfo = nl_writer.NLWriter().write(m, OUT, symbolic_solver_labels=True, linear_presolve=True)
1572+
nlinfo = nl_writer.NLWriter().write(
1573+
m, OUT, symbolic_solver_labels=True, linear_presolve=True
1574+
)
15731575
self.assertEqual(LOG.getvalue(), "")
15741576

15751577
self.assertEqual(
1576-
nlinfo.eliminated_vars,
1577-
[
1578-
(m.x[1], nl_writer.AMPLRepn(7, {}, None)),
1579-
],
1578+
nlinfo.eliminated_vars, [(m.x[1], nl_writer.AMPLRepn(7, {}, None))]
15801579
)
15811580

15821581
self.assertEqual(
@@ -1634,7 +1633,6 @@ def test_presolve_named_expressions(self):
16341633
)
16351634
)
16361635

1637-
16381636
def test_scaling(self):
16391637
m = pyo.ConcreteModel()
16401638
m.x = pyo.Var(initialize=0)

0 commit comments

Comments
 (0)