mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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>
This commit is contained in:
parent
dd39e29ccb
commit
576dd90117
3 changed files with 7 additions and 17 deletions
|
@ -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):
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue