Skip to content

Commit

Permalink
Merge pull request #87 from scarabeusiv/patch-1
Browse files Browse the repository at this point in the history
Get value from exception to fix pytest 5 compat
  • Loading branch information
njsmith authored Aug 23, 2019
2 parents eec8210 + cc0c63e commit 241e220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h11/tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _validate(self):
with pytest.raises(TypeError) as exc:
T(b=0)
# make sure we error on the right missing kwarg
assert "kwarg a" in str(exc)
assert "kwarg a" in str(exc.value)

# _validate is called
with pytest.raises(ValueError):
Expand Down

0 comments on commit 241e220

Please sign in to comment.