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

Method setUp

IPython/core/tests/test_inputsplitter.py:108–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106
107class NoInputEncodingTestCase(unittest.TestCase):
108 def setUp(self):
109 self.old_stdin = sys.stdin
110 class X: pass
111 fake_stdin = X()
112 sys.stdin = fake_stdin
113
114 def test(self):
115 # Verify that if sys.stdin has no 'encoding' attribute we do the right

Callers

nothing calls this directly

Calls 1

XClass · 0.70

Tested by

no test coverage detected