From 5f3751d3e8ab83c8ad308480f7666b7bdbe2c9fb Mon Sep 17 00:00:00 2001 From: Carter Tinney Date: Wed, 10 Jul 2024 09:23:19 -0700 Subject: [PATCH] Fixed test for 3.11 --- tests/unit/provisioning/models/test_registration_result.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/provisioning/models/test_registration_result.py b/tests/unit/provisioning/models/test_registration_result.py index aba1bb4be..ecf1b5d03 100644 --- a/tests/unit/provisioning/models/test_registration_result.py +++ b/tests/unit/provisioning/models/test_registration_result.py @@ -67,7 +67,7 @@ def test_registration_result_to_string(self): @pytest.mark.it("Has attributes that do not have setter") def test_some_properties_of_result_are_not_settable(self, input_setter_code): registration_result = create_registration_result() # noqa: F841 - with pytest.raises(AttributeError, match="can't set attribute"): + with pytest.raises(AttributeError): exec(input_setter_code) @pytest.mark.parametrize( @@ -91,7 +91,7 @@ def test_some_properties_of_result_are_not_settable(self, input_setter_code): def test_some_properties_of_state_are_not_settable(self, input_setter_code): registration_state = create_registration_state() # noqa: F841 - with pytest.raises(AttributeError, match="can't set attribute"): + with pytest.raises(AttributeError): exec(input_setter_code) @pytest.mark.it(