Skip to content

Commit 095da32

Browse files
lint: silence B018 in test_dunder_getattr_missing_raises
ruff 0.16 enables flake8-bugbear by default, so the bare ``pluggy.nope`` expression added in #718 fails B018 and turns pre-commit.ci red on main. Bind it to ``_`` like the other attribute-access checks in that test suite. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent de34583 commit 095da32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testing/test_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def test_dunder_version() -> None:
236236

237237
def test_dunder_getattr_missing_raises() -> None:
238238
with pytest.raises(AttributeError, match="module pluggy has no attribute 'nope'"):
239-
pluggy.nope
239+
_ = pluggy.nope
240240

241241

242242
def test_hookimpl_disallow_invalid_combination() -> None:

0 commit comments

Comments
 (0)