summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_warning.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-05-15 18:20:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-05-15 18:20:13 (GMT)
commit89d2a0394e6aad50b64779cce0096bab908ea84c (patch)
tree488aaa3d6d09ee39bfc48bcf6aa91cea7f923b04 /Lib/idlelib/idle_test/test_warning.py
parente6073944b65efc13731c73c044cee18af1b64d44 (diff)
parent5f4ac9fcf3fbd90a25db7e17060df935506835c9 (diff)
downloadcpython-89d2a0394e6aad50b64779cce0096bab908ea84c.zip
cpython-89d2a0394e6aad50b64779cce0096bab908ea84c.tar.gz
cpython-89d2a0394e6aad50b64779cce0096bab908ea84c.tar.bz2
Merge with 3.5
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 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)