MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_print

Method test_print

tests/test_pydev_ipython_011.py:125–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123@pytest.mark.skipif(not has_ipython, reason="IPython not available")
124class TestRunningCode(TestBase):
125 def test_print(self):
126 self.redirect_stdout()
127 try:
128 self.add_exec('print("output")')
129 eq_(sys.stdout.getvalue(), "output\n")
130 finally:
131 self.restore_stdout()
132
133 def testQuestionMark_1(self):
134 self.redirect_stdout()

Callers

nothing calls this directly

Calls 5

eq_Function · 0.85
redirect_stdoutMethod · 0.80
getvalueMethod · 0.80
restore_stdoutMethod · 0.80
add_execMethod · 0.45

Tested by

no test coverage detected