Skip to content

Commit cfb8d60

Browse files
committed
Minor string formatting in test_parmest.py
1 parent c78ff0b commit cfb8d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyomo/contrib/parmest/tests/test_parmest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def label_model(self):
155155
if self.objective_function == "incorrect_obj":
156156
with pytest.raises(
157157
ValueError,
158-
match="Invalid objective function: 'incorrect_obj'\. "
159-
"Choose from \['SSE', 'SSE_weighted'\]\.",
158+
match=r"Invalid objective function: 'incorrect_obj'\. "
159+
r"Choose from \['SSE', 'SSE_weighted'\]\.",
160160
):
161161
self.pest = parmest.Estimator(
162162
self.exp_list, obj_function=self.objective_function, tee=True

0 commit comments

Comments
 (0)