Skip to content

Commit 576dd90

Browse files
gh-84623: Remove unused imports in idlelib (#94143)
Remove commented code in test_debugger_r.py. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent dd39e29 commit 576dd90

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Lib/idlelib/idle_test/test_debugger_r.py

+6-13
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,21 @@
22

33
from idlelib import debugger_r
44
import unittest
5-
from test.support import requires
6-
from tkinter import Tk
7-
8-
9-
class Test(unittest.TestCase):
105

6+
# 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-
def test_init(self):
22-
self.assertTrue(True) # Get coverage of import
23-
2417

25-
# 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.
2720

2821
class IdbAdapterTest(unittest.TestCase):
2922

Lib/idlelib/idle_test/test_editor.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections import namedtuple
66
from test.support import requires
77
from tkinter import Tk
8-
from idlelib.idle_test.mock_idle import Func
98

109
Editor = editor.EditorWindow
1110

Lib/idlelib/iomenu.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from tkinter import messagebox
1010
from tkinter.simpledialog import askstring
1111

12-
import idlelib
1312
from idlelib.config import idleConf
1413
from idlelib.util import py_extensions
1514

@@ -21,8 +20,7 @@
2120
else:
2221
errors = 'surrogateescape'
2322

24-
25-
23+
2624
class IOBinding:
2725
# One instance per editor Window so methods know which to save, close.
2826
# Open returns focus to self.editwin if aborted.

0 commit comments

Comments
 (0)