Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Mar 27, 2024
1 parent 897704d commit 60acf1c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyomo/contrib/gdpopt/tests/test_gdpopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,11 @@ def assert_correct_disjuncts_active(

self.assertTrue(fabs(value(eight_process.profit.expr) - 68) <= 1e-2)

@unittest.skipUnless(SolverFactory('appsi_gurobi').available(
exception_flag=False) and SolverFactory('appsi_gurobi').license_is_valid(),
"Legacy APPSI Gurobi solver is not available")
@unittest.skipUnless(
SolverFactory('appsi_gurobi').available(exception_flag=False)
and SolverFactory('appsi_gurobi').license_is_valid(),
"Legacy APPSI Gurobi solver is not available",
)
def test_auto_persistent_solver(self):
exfile = import_file(join(exdir, 'eight_process', 'eight_proc_model.py'))
m = exfile.build_eight_process_flowsheet()
Expand Down

0 comments on commit 60acf1c

Please sign in to comment.