Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34be807

Browse files
gh-84623: Remove unused imports in idlelib (GH-94143) (#94148)
Remove commented code in test_debugger_r.py.Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>(cherry picked from commit576dd90)Co-authored-by: Victor Stinner <vstinner@python.org>Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent73b1d49 commit34be807

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

‎Lib/idlelib/idle_test/test_debugger_r.py‎

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,21 @@
22

33
fromidlelibimportdebugger_r
44
importunittest
5-
fromtest.supportimportrequires
6-
fromtkinterimportTk
7-
8-
9-
classTest(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-
deftest_init(self):
22-
self.assertTrue(True)# Get coverage of import
23-
2417

25-
#ClassesGUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy,
26-
# GUIAdapter, IdbProxy plus 7modulefunctions.
18+
# GUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy,
19+
# GUIAdapter, IdbProxy, and 7 functions still need tests.
2720

2821
classIdbAdapterTest(unittest.TestCase):
2922

‎Lib/idlelib/idle_test/test_editor.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
fromcollectionsimportnamedtuple
66
fromtest.supportimportrequires
77
fromtkinterimportTk
8-
fromidlelib.idle_test.mock_idleimportFunc
98

109
Editor=editor.EditorWindow
1110

‎Lib/idlelib/iomenu.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
fromtkinterimportmessagebox
1010
fromtkinter.simpledialogimportaskstring
1111

12-
importidlelib
1312
fromidlelib.configimportidleConf
1413
fromidlelib.utilimportpy_extensions
1514

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

24-
25-
23+
2624
classIOBinding:
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)

[8]ページ先頭

©2009-2025 Movatter.jp