From 095da328c77aa4b7e064cfac9e8e87e974baa107 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 12 Aug 2026 13:07:22 +0200 Subject: [PATCH] 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) --- testing/test_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_details.py b/testing/test_details.py index 88a897f1..e42472d2 100644 --- a/testing/test_details.py +++ b/testing/test_details.py @@ -236,7 +236,7 @@ def test_dunder_version() -> None: def test_dunder_getattr_missing_raises() -> None: with pytest.raises(AttributeError, match="module pluggy has no attribute 'nope'"): - pluggy.nope + _ = pluggy.nope def test_hookimpl_disallow_invalid_combination() -> None: