diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-15 18:19:59 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-15 18:19:59 (GMT) |
commit | 5f4ac9fcf3fbd90a25db7e17060df935506835c9 (patch) | |
tree | 10df3de60f06e16134a2ae33a32fed0208cea72b /Lib/idlelib/idle_test | |
parent | cd65a0302a919a584905ceb9c2c9f48200fac59f (diff) | |
download | cpython-5f4ac9fcf3fbd90a25db7e17060df935506835c9.zip cpython-5f4ac9fcf3fbd90a25db7e17060df935506835c9.tar.gz cpython-5f4ac9fcf3fbd90a25db7e17060df935506835c9.tar.bz2 |
Issue #25747: remove undependable and possibly useless test.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_warning.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/idlelib/idle_test/test_warning.py b/Lib/idlelib/idle_test/test_warning.py index 54ac993..18627dd 100644 --- a/Lib/idlelib/idle_test/test_warning.py +++ b/Lib/idlelib/idle_test/test_warning.py @@ -68,15 +68,6 @@ class ShellWarnTest(unittest.TestCase): 'Test', UserWarning, 'test_warning.py', 99, f, 'Line of code') self.assertEqual(shellmsg.splitlines(), f.getvalue().splitlines()) -class ImportWarnTest(unittest.TestCase): - def test_idlever(self): - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") - import idlelib.idlever - self.assertEqual(len(w), 1) - self.assertTrue(issubclass(w[-1].category, DeprecationWarning)) - self.assertIn("version", str(w[-1].message)) - if __name__ == '__main__': unittest.main(verbosity=2, exit=False) |