diff --git a/pyomo/core/tests/unit/test_set.py b/pyomo/core/tests/unit/test_set.py index 2a2651ca554..8c0360d618b 100644 --- a/pyomo/core/tests/unit/test_set.py +++ b/pyomo/core/tests/unit/test_set.py @@ -3824,7 +3824,7 @@ def test_initialize_with_noniterable(self): with LoggingIntercept(output, 'pyomo.core'): with self.assertRaisesRegex(TypeError, "'int' object is not iterable"): m = ConcreteModel() - m.I = Set([1,2], initialize=5) + m.I = Set([1, 2], initialize=5) ref = "Initializer for Set I[1] returned non-iterable object of type int." self.assertIn(ref, output.getvalue())