MCPcopy Index your code
hub / github.com/ipython/ipython / test_tee_simple

Function test_tee_simple

tests/test_io.py:16–23  ·  view source on GitHub ↗

Very simple check with stdout only

()

Source from the content-addressed store, hash-verified

14
15
16def test_tee_simple():
17 "Very simple check with stdout only"
18 chan = StringIO()
19 text = "Hello"
20 tee = Tee(chan, channel="stdout")
21 print(text, file=chan)
22 assert chan.getvalue() == text + "\n"
23 tee.close()
24
25
26class TeeTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
TeeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…