MCPcopy Create free account
hub / github.com/pybind/pybind11 / __enter__

Method __enter__

tests/conftest.py:117–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 self.err = ""
116
117 def __enter__(self):
118 self.capfd.readouterr()
119 return self
120
121 def __exit__(self, *args):
122 self.out, self.err = self.capfd.readouterr()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected