gh-84623: Remove unused imports in idlelib (GH-94143) (#94148) · python/cpython@34be807

GitHub

@@ -2,28 +2,21 @@

2233fromidlelibimportdebugger_r

44importunittest

5-fromtest.supportimportrequires

6-fromtkinterimportTk

7-8-9-classTest(unittest.TestCase):

1056+# Boilerplate likely to be needed for future test classes.

7+##from test.support import requires

8+##from tkinter import Tk

9+##class Test(unittest.TestCase):

1110## @classmethod

1211## def setUpClass(cls):

1312## requires('gui')

1413## cls.root = Tk()

15-##

1614## @classmethod

1715## def tearDownClass(cls):

1816## cls.root.destroy()

19-## del cls.root

20-21-deftest_init(self):

22-self.assertTrue(True) # Get coverage of import

23-241725-# Classes GUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy,

26-# GUIAdapter, IdbProxy plus 7 module functions.

18+# GUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy,

19+# GUIAdapter, IdbProxy, and 7 functions still need tests.

27202821classIdbAdapterTest(unittest.TestCase):

2922