(self)
| 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 | |
| 72 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected