Merge master into features

This commit is contained in:
Daniel Hahler
2018-12-14 16:44:43 +01:00
13 changed files with 72 additions and 11 deletions

View File

@@ -44,6 +44,11 @@ class TestRaises(object):
except pytest.raises.Exception:
pass
def test_raises_falsey_type_error(self):
with pytest.raises(TypeError):
with pytest.raises(AssertionError, match=0):
raise AssertionError("ohai")
def test_raises_repr_inflight(self):
"""Ensure repr() on an exception info inside a pytest.raises with block works (#4386)"""