MCPcopy Create free account
hub / github.com/ipython/ipython / __enter__

Method __enter__

IPython/core/tests/test_debugger.py:51–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.input = input
50
51 def __enter__(self):
52 self.real_stdin = sys.stdin
53 sys.stdin = _FakeInput(self.input)
54
55 def __exit__(self, *exc):
56 sys.stdin = self.real_stdin

Callers 1

setUpMethod · 0.45

Calls 1

_FakeInputClass · 0.85

Tested by

no test coverage detected