diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-23 00:09:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 00:09:48 +0200 |
commit | 576dd901170af30fc50b0a7f07a388b38fd724a9 (patch) | |
tree | 1768ea693124ccbb81b3ac4242c0f683e9e01256 /Lib/idlelib/idle_test | |
parent | dd39e29ccb5119343c9db57c14cc1dac49716e51 (diff) | |
download | cpython-576dd901170af30fc50b0a7f07a388b38fd724a9.tar.gz cpython-576dd901170af30fc50b0a7f07a388b38fd724a9.zip |
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>
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_debugger_r.py | 19 | ||||
-rw-r--r-- | Lib/idlelib/idle_test/test_editor.py | 1 |
2 files changed, 6 insertions, 14 deletions
diff --git a/Lib/idlelib/idle_test/test_debugger_r.py b/Lib/idlelib/idle_test/test_debugger_r.py index 638ebd36a74..cf8af05fe27 100644 --- a/Lib/idlelib/idle_test/test_debugger_r.py +++ b/Lib/idlelib/idle_test/test_debugger_r.py @@ -2,28 +2,21 @@ from idlelib import debugger_r import unittest -from test.support import requires -from tkinter import Tk - - -class Test(unittest.TestCase): +# Boilerplate likely to be needed for future test classes. +##from test.support import requires +##from tkinter import Tk +##class Test(unittest.TestCase): ## @classmethod ## def setUpClass(cls): ## requires('gui') ## cls.root = Tk() -## ## @classmethod ## def tearDownClass(cls): ## cls.root.destroy() -## del cls.root - - def test_init(self): - self.assertTrue(True) # Get coverage of import - -# Classes GUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy, -# GUIAdapter, IdbProxy plus 7 module functions. +# GUIProxy, IdbAdapter, FrameProxy, CodeProxy, DictProxy, +# GUIAdapter, IdbProxy, and 7 functions still need tests. class IdbAdapterTest(unittest.TestCase): diff --git a/Lib/idlelib/idle_test/test_editor.py b/Lib/idlelib/idle_test/test_editor.py index 8665d680c01..fdb47abf43f 100644 --- a/Lib/idlelib/idle_test/test_editor.py +++ b/Lib/idlelib/idle_test/test_editor.py @@ -5,7 +5,6 @@ import unittest from collections import namedtuple from test.support import requires from tkinter import Tk -from idlelib.idle_test.mock_idle import Func Editor = editor.EditorWindow |