MCPcopy
hub / github.com/pytest-dev/pytest / test_simple_fail_second_start

Method test_simple_fail_second_start

testing/test_capture.py:1060–1065  ·  view source on GitHub ↗
(self, tmpfile: BinaryIO)

Source from the content-addressed store, hash-verified

1058 self.test_simple_many(tmpfile)
1059
1060 def test_simple_fail_second_start(self, tmpfile: BinaryIO) -> None:
1061 fd = tmpfile.fileno()
1062 cap = capture.FDCapture(fd)
1063 cap.done()
1064 with pytest.raises(AssertionError):
1065 cap.start()
1066
1067 def test_stderr(self) -> None:
1068 cap = capture.FDCapture(2)

Callers

nothing calls this directly

Calls 3

filenoMethod · 0.45
doneMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected