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.
2 parents eec8210 + cc0c63e commit 241e220Copy full SHA for 241e220
h11/tests/test_events.py
@@ -44,7 +44,7 @@ def _validate(self):
44
with pytest.raises(TypeError) as exc:
45
T(b=0)
46
# make sure we error on the right missing kwarg
47
- assert "kwarg a" in str(exc)
+ assert "kwarg a" in str(exc.value)
48
49
# _validate is called
50
with pytest.raises(ValueError):
0 commit comments