diff --git a/pyomo/contrib/solver/ipopt.py b/pyomo/contrib/solver/ipopt.py index 469b964b5cf..dc632adb184 100644 --- a/pyomo/contrib/solver/ipopt.py +++ b/pyomo/contrib/solver/ipopt.py @@ -76,8 +76,7 @@ def __init__( ), ) self.writer_config: ConfigDict = self.declare( - 'writer_config', - NLWriter.CONFIG(), + 'writer_config', NLWriter.CONFIG() ) diff --git a/pyomo/contrib/solver/tests/solvers/test_solvers.py b/pyomo/contrib/solver/tests/solvers/test_solvers.py index 3b979c6f693..a4f4a3bc389 100644 --- a/pyomo/contrib/solver/tests/solvers/test_solvers.py +++ b/pyomo/contrib/solver/tests/solvers/test_solvers.py @@ -1547,9 +1547,7 @@ def test_presolve_with_zero_coef( exp = TerminationCondition.provenInfeasible else: exp = TerminationCondition.locallyInfeasible - self.assertEqual( - res.termination_condition, exp - ) + self.assertEqual(res.termination_condition, exp) m = pe.ConcreteModel() m.w = pe.Var() @@ -1573,9 +1571,7 @@ def test_presolve_with_zero_coef( res = opt.solve( m, load_solutions=False, raise_exception_on_nonoptimal_result=False ) - self.assertEqual( - res.termination_condition, exp - ) + self.assertEqual(res.termination_condition, exp) @parameterized.expand(input=_load_tests(all_solvers)) def test_scaling(self, name: str, opt_class: Type[SolverBase], use_presolve: bool):