Skip to content

Commit 241e220

Browse files
authored
Merge pull request #87 from scarabeusiv/patch-1
Get value from exception to fix pytest 5 compat
2 parents eec8210 + cc0c63e commit 241e220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h11/tests/test_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _validate(self):
4444
with pytest.raises(TypeError) as exc:
4545
T(b=0)
4646
# make sure we error on the right missing kwarg
47-
assert "kwarg a" in str(exc)
47+
assert "kwarg a" in str(exc.value)
4848

4949
# _validate is called
5050
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)