python-attrs / attrs

Python Classes Without Boilerplate
https://www.attrs.org/
MIT License
5.3k stars 374 forks source link

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

Closed dlax closed 8 months ago

dlax commented 8 months ago

Summary

assoc() no longer raises a deprecation warning since commit 22ae8473fb88d6e585b05c709e81e1a46398a649 but the with pytest.deprecated_call(): in that test was not removed then (in contrast with other test cases).

Maybe this got unnoticed due to a pytest bug? In any case, using pytest 8+ (and keeping deprecated_call()) shows that no warning is raised and the test fails.

Removing the upper bound on pytest in dev dependencies as tests now pass with pytest 8.0.

Fix #1233.

Pull Request Check List