MCPcopy
hub / github.com/pallets/click / start

Method start

src/click/testing.py:100–103  ·  src/click/testing.py::_FDCapture.start
(self)

Source from the content-addressed store, hash-verified

98 self._tmpfile = None
99
100 def start(self) -> None:
101 self.saved_fd = os.dup(self._targetfd)
102 self._tmpfile = tempfile.TemporaryFile(buffering=0)
103 os.dup2(self._tmpfile.fileno(), self._targetfd)
104
105 def stop(self) -> bytes:
106 assert self._tmpfile is not None, class="st">"_FDCapture.start() was not called"

Callers 2

invokeMethod · 0.80
cliFunction · 0.80

Calls 1

filenoMethod · 0.80

Tested by

no test coverage detected