File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import idlelib .AutoComplete as ac
66import idlelib .AutoCompleteWindow as acw
77import idlelib .macosxSupport as mac
8- from idlelib .EditorWindow import EditorWindow
98from idlelib .idle_test .mock_idle import Func
109from idlelib .idle_test .mock_tk import Event
1110
1211class AutoCompleteWindow :
1312 def complete ():
1413 return
1514
15+ class DummyEditwin :
16+ def __init__ (self , root , text ):
17+ self .root = root
18+ self .text = text
19+ self .indentwidth = 8
20+ self .tabwidth = 8
21+ self .context_use_ps1 = True
22+
1623
1724class AutoCompleteTest (unittest .TestCase ):
1825
@@ -21,8 +28,8 @@ def setUpClass(cls):
2128 requires ('gui' )
2229 cls .root = Tk ()
2330 mac .setupApp (cls .root , None )
24- cls .editor = EditorWindow ( root = cls .root )
25- cls .text = cls .editor .text
31+ cls .text = Text ( cls .root )
32+ cls .editor = DummyEditwin ( cls .root , cls .text )
2633
2734 @classmethod
2835 def tearDownClass (cls ):
You can’t perform that action at this time.
0 commit comments