summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_warning.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-05-17 02:27:22 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-05-17 02:27:22 (GMT)
commit0825e633cd64aba8d36cd5bf63f26c7e0284a454 (patch)
tree59916605012da1552640c97fddc58cd8f1a85857 /Lib/idlelib/idle_test/test_warning.py
parentc742dff16a8dd6979a7857948f63f99f391bb369 (diff)
downloadcpython-0825e633cd64aba8d36cd5bf63f26c7e0284a454.zip
cpython-0825e633cd64aba8d36cd5bf63f26c7e0284a454.tar.gz
cpython-0825e633cd64aba8d36cd5bf63f26c7e0284a454.tar.bz2
Backports: #25747: remove bad test. #27044: stop test_idle from leaking.
Diffstat (limited to 'Lib/idlelib/idle_test/test_warning.py')
-rw-r--r--Lib/idlelib/idle_test/test_warning.py9
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 26710f1..da1d8a1 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)