Skip to content

Commit

Permalink
fix test: ScalarCallInitializers are constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Jan 11, 2024
1 parent c22276f commit 131fd3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyomo/core/tests/unit/test_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 131fd3f

Please sign in to comment.