Skip to content

Commit

Permalink
Fixed test for 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cartertinney committed Jul 10, 2024
1 parent 4958767 commit 5f3751d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/provisioning/models/test_registration_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 5f3751d

Please sign in to comment.