def test_shell_show(self): with captured_stderr() as f: shell.idle_showwarning( 'Test', UserWarning, 'test_warning.py', 99, f, 'Line of code') self.assertEqual(shellmsg.splitlines(), f.getvalue().splitlines())
def test_shell_show(self): with captured_stderr() as f: shell.idle_showwarning("Test", UserWarning, "test_warning.py", 99, f, "Line of code") self.assertEqual(shellmsg.splitlines(), f.getvalue().splitlines())