diff --git a/pyproject.toml b/pyproject.toml index 8a4ea39a2..0bd2c6ddf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,7 @@ tests-no-zope = [ "hypothesis", "pympler", # 4.3.0 dropped last use of `convert` - # 8.0 broke something around warnings/exceptions - "pytest>=4.3.0,<8.0", + "pytest>=4.3.0", "pytest-xdist[psutil]", "attrs[tests-mypy]", ] diff --git a/tests/test_funcs.py b/tests/test_funcs.py index 044aaab2c..398ba3576 100644 --- a/tests/test_funcs.py +++ b/tests/test_funcs.py @@ -600,9 +600,7 @@ def test_unknown(self, C): AttrsAttributeNotFoundError. """ # No generated class will have a four letter attribute. - with pytest.raises( - AttrsAttributeNotFoundError - ) as e, pytest.deprecated_call(): + with pytest.raises(AttrsAttributeNotFoundError) as e: assoc(C(), aaaa=2) assert (f"aaaa is not an attrs attribute on {C!r}.",) == e.value.args