We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a9c5c commit 29462b1Copy full SHA for 29462b1
testing/python/raises.py
@@ -21,7 +21,9 @@ def test_raises_function(self):
21
22
def test_raises_does_not_allow_none(self):
23
with pytest.raises(ValueError, match="Expected an exception type or"):
24
- pytest.raises(expected_exception=None)
+ # We're testing that this invalid usage gives a helpful error,
25
+ # so we can ignore Mypy telling us that None is invalid.
26
+ pytest.raises(expected_exception=None) # type: ignore
27
28
def test_raises_does_not_allow_empty_tuple(self):
29
0 commit comments