diff --git a/tests/test_setattr.py b/tests/test_setattr.py index 2fc781bf0..9db72c952 100644 --- a/tests/test_setattr.py +++ b/tests/test_setattr.py @@ -290,7 +290,7 @@ def __setattr__(self, key, value): with pytest.raises(SystemError): A().x = 1 - @pytest.mark.xfail + @pytest.mark.xfail(raises=attr.exceptions.FrozenAttributeError) def test_slotted_confused(self): """ If we have a in-between non-attrs class, setattr reset detection