Skip to content

Commit 49369ab

Browse files
committed
fix pytest-raises-match test
Ref: pytest-dev#6753
1 parent 774b515 commit 49369ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def test_simple_fail_second_start(self, tmpfile):
933933
fd = tmpfile.fileno()
934934
cap = capture.FDCapture(fd)
935935
cap.done()
936-
pytest.raises(ValueError, cap.start, match="cannot start after state 'done'")
936+
pytest.raises(ValueError, cap.start).match("cannot start after state 'done'")
937937

938938
def test_stderr(self):
939939
cap = capture.FDCapture(2)

0 commit comments

Comments
 (0)