Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pytest.deprecated_call() in TestAssoc::test_unknown #1249

Merged
merged 2 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
]
Expand Down
4 changes: 1 addition & 3 deletions tests/test_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down