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

Method test_shell_show

Lib/idlelib/idle_test/test_warning.py:65–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.assertEqual(idlemsg, s)
64
65 def test_shell_show(self):
66 with captured_stderr() as f:
67 shell.idle_showwarning(
68 'Test', UserWarning, 'test_warning.py', 99, f, 'Line of code')
69 self.assertEqual(shellmsg.splitlines(), f.getvalue().splitlines())
70
71
72if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

captured_stderrFunction · 0.90
assertEqualMethod · 0.45
splitlinesMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected