(self)
| 39 | self.assertIs(warnings.showwarning, showwarning) |
| 40 | |
| 41 | def test_run_show(self): |
| 42 | with captured_stderr() as f: |
| 43 | run.idle_showwarning_subproc( |
| 44 | 'Test', UserWarning, 'test_warning.py', 99, f, 'Line of code') |
| 45 | # The following uses .splitlines to erase line-ending differences |
| 46 | self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines()) |
| 47 | |
| 48 | |
| 49 | class ShellWarnTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected