Skip to content

Commit

Permalink
fix typos in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 12, 2024
1 parent 40debe7 commit 0e9af93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyomo/util/tests/test_subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ def test_identify_external_functions(self):
@unittest.skipUnless(find_GSL(), "Could not find the AMPL GSL library")
def test_local_external_functions_with_named_expressions(self):
m = self._make_model_with_external_functions(named_expressions=True)
variables = list(pyo.component_data_objects(pyo.Var))
constraints = list(pyo.component_data_objects(pyo.Constraint, active=True))
variables = list(m.component_data_objects(pyo.Var))
constraints = list(m.component_data_objects(pyo.Constraint, active=True))
b = create_subsystem_block(constraints, variables)
self.assertTrue(isinstance(m._gsl_sf_bessel_J0, pyo.ExternalFunction))
self.assertTrue(isinstance(m._gsl_sf_fermi_dirac_m1, pyo.ExternalFunction))
self.assertTrue(isinstance(b._gsl_sf_bessel_J0, pyo.ExternalFunction))
self.assertTrue(isinstance(b._gsl_sf_fermi_dirac_m1, pyo.ExternalFunction))

def _solve_ef_model_with_ipopt(self):
m = self._make_model_with_external_functions()
Expand Down

0 comments on commit 0e9af93

Please sign in to comment.