mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Issue #25747: remove undependable and possibly useless test.
This commit is contained in:
parent
cd65a0302a
commit
5f4ac9fcf3
1 changed files with 0 additions and 9 deletions
|
|
@ -68,15 +68,6 @@ def test_shell_show(self):
|
|||
'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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue