MCPcopy Index your code
hub / github.com/python/cpython / test_console_stderr

Method test_console_stderr

Lib/test/test_code_module.py:85–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(self.sysmod.ps2, 'custom2> ')
84
85 def test_console_stderr(self):
86 self.infunc.side_effect = ["'antioch'", "", EOFError('Finished')]
87 self.console.interact()
88 for call in list(self.stdout.method_calls):
89 if 'antioch' in ''.join(call[1]):
90 break
91 else:
92 raise AssertionError("no console stdout")
93
94 def test_syntax_error(self):
95 self.infunc.side_effect = ["def f():",

Callers

nothing calls this directly

Calls 3

listClass · 0.85
interactMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected