[flake8-bugbear] Fixes a B017 we can actually fix and noqa the two others

This commit is contained in:
Pierre Sassoulas
2024-02-04 11:39:27 +01:00
parent b62d4b3527
commit 41ff3584d7
3 changed files with 3 additions and 4 deletions

View File

@@ -280,7 +280,7 @@ class TestRaises:
def test_raises_context_manager_with_kwargs(self):
with pytest.raises(TypeError) as excinfo:
with pytest.raises(Exception, foo="bar"): # type: ignore[call-overload]
with pytest.raises(OSError, foo="bar"): # type: ignore[call-overload]
pass
assert "Unexpected keyword arguments" in str(excinfo.value)