Skip to content

Commit

Permalink
HACK: Horrible hack but picks up the right tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Jul 19, 2023
1 parent dbd4242 commit 777d242
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyomo/solvers/tests/checks/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ def return_test(self):
# July 19, 2023: There is an issue with certain GAMS cases that is
# causing failures. This is not universal, however, so we cannot add
# the cases directly to testcases.py.
if (solver, io, value) == (
('gams', 'gms', 'LP_simple_kernel') or ('gams', 'python', 'LP_simple_kernel')
if (
(solver == 'gams')
and (io in ['gms', 'python'])
and ('.LP_simple_kernel' in str(value.model))
):
value.is_expected_failure = True

value.status = 'expected failure'
# Symbolic labels
test_name = "test_" + solver + "_" + io + "_symbolic_labels"
test_method = create_method(model, solver, io, value, True)
Expand Down

0 comments on commit 777d242

Please sign in to comment.