diff --git a/pyomo/core/tests/unit/test_initializer.py b/pyomo/core/tests/unit/test_initializer.py index 35479612698..b334a6b857b 100644 --- a/pyomo/core/tests/unit/test_initializer.py +++ b/pyomo/core/tests/unit/test_initializer.py @@ -576,9 +576,10 @@ def test_no_argspec(self): # persist through Pyomo's Initializer handling (and not # special case it there) self.assertIs(type(a), ScalarCallInitializer) + self.assertTrue(a.constant()) else: self.assertIs(type(a), IndexedCallInitializer) - self.assertFalse(a.constant()) + self.assertFalse(a.constant()) self.assertFalse(a.verified) self.assertFalse(a.contains_indices()) # but this is not callable, as int won't accept the 'model'