def test_run_show(self):
     with captured_stderr() as f:
         run.idle_showwarning_subproc('Test', UserWarning,
                                      'test_warning.py', 99, f,
                                      'Line of code')
         # The following uses .splitlines to erase line-ending differences
         self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines())
 def test_run_show(self):
     with captured_stderr() as f:
         run.idle_showwarning_subproc(
                 'Test', UserWarning, 'test_warning.py', 99, f, 'Line of code')
         # The following uses .splitlines to erase line-ending differences
         self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines())
Esempio n. 3
0
 def test_run_show(self):
     with captured_stderr() as f:
         run.idle_showwarning_subproc('Test', UserWarning, 'test_warning.py', 99, f, 'Line of code')
         self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines())
Esempio n. 4
0
 def test_run_show(self):
     with captured_stderr() as f:
         run.idle_showwarning_subproc('Test', UserWarning, 'test_warning.py', 99, f, 'Line of code')
         self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines())
Esempio n. 5
0
 def test_run_show(self):
     with captured_stderr() as f:
         run.idle_showwarning_subproc("Test", UserWarning, "test_warning.py", 99, f, "Line of code")
         self.assertEqual(idlemsg.splitlines(), f.getvalue().splitlines())