Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions testing/python/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ def __init__(self, request):
values = reprec.getfailedcollections()
assert len(values) == 1

@pytest.mark.filterwarnings("ignore::pytest.PytestDeprecationWarning")
def test_request_can_be_overridden(self, testdir):
testdir.makepyfile(
"""
Expand Down
3 changes: 2 additions & 1 deletion testing/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def __repr__(self):
class TestBrokenClass(object):
def test_explicit_bad_repr(self):
t = BrokenRepr1()
pytest.raises(Exception, 'repr(t)')
with pytest.raises(Exception, match="I'm a broken repr"):
repr(t)

def test_implicit_bad_repr1(self):
t = BrokenRepr1()
Expand Down