From d595a32ba9559f370a44c77dc11cbe8bcf7a0c34 Mon Sep 17 00:00:00 2001 From: Emma Johnson Date: Wed, 16 Aug 2023 09:19:55 -0600 Subject: [PATCH] Fixing mistake with raw strings --- pyomo/gdp/tests/test_transform_current_disjunctive_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyomo/gdp/tests/test_transform_current_disjunctive_state.py b/pyomo/gdp/tests/test_transform_current_disjunctive_state.py index d2b438e9f6c..d257c3db8fb 100644 --- a/pyomo/gdp/tests/test_transform_current_disjunctive_state.py +++ b/pyomo/gdp/tests/test_transform_current_disjunctive_state.py @@ -344,9 +344,9 @@ def test_complain_about_dangling_disjuncts(self): with self.assertRaisesRegex( GDP_Error, - "Found active Disjuncts on the model that " - "were not included in any Disjunctions:\nd\[4\]\nPlease " - "deactivate them or include them in a Disjunction.", + r"Found active Disjuncts on the model that " + r"were not included in any Disjunctions:\nd\[4\]\nPlease " + r"deactivate them or include them in a Disjunction.", ): reverse = TransformationFactory( 'gdp.transform_current_disjunctive_state'