Skip to content

Commit 80847ce

Browse files
committed
run black
1 parent 97e01d9 commit 80847ce

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

pyomo/contrib/solver/ipopt.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def __init__(
7676
),
7777
)
7878
self.writer_config: ConfigDict = self.declare(
79-
'writer_config',
80-
NLWriter.CONFIG(),
79+
'writer_config', NLWriter.CONFIG()
8180
)
8281

8382

pyomo/contrib/solver/tests/solvers/test_solvers.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1547,9 +1547,7 @@ def test_presolve_with_zero_coef(
15471547
exp = TerminationCondition.provenInfeasible
15481548
else:
15491549
exp = TerminationCondition.locallyInfeasible
1550-
self.assertEqual(
1551-
res.termination_condition, exp
1552-
)
1550+
self.assertEqual(res.termination_condition, exp)
15531551

15541552
m = pe.ConcreteModel()
15551553
m.w = pe.Var()
@@ -1573,9 +1571,7 @@ def test_presolve_with_zero_coef(
15731571
res = opt.solve(
15741572
m, load_solutions=False, raise_exception_on_nonoptimal_result=False
15751573
)
1576-
self.assertEqual(
1577-
res.termination_condition, exp
1578-
)
1574+
self.assertEqual(res.termination_condition, exp)
15791575

15801576
@parameterized.expand(input=_load_tests(all_solvers))
15811577
def test_scaling(self, name: str, opt_class: Type[SolverBase], use_presolve: bool):

0 commit comments

Comments
 (0)