Commits

Terry Jan Reedy  committed 10736d0 Merge

Merge heads.

  • Participants
  • Parent commits b1e99b4, f15d48e

Comments (0)

Files changed (1)

File Lib/idlelib/idle_test/test_autocomplete.py

 import idlelib.AutoComplete as ac
 import idlelib.AutoCompleteWindow as acw
 import idlelib.macosxSupport as mac
-from idlelib.EditorWindow import EditorWindow
 from idlelib.idle_test.mock_idle import Func
 from idlelib.idle_test.mock_tk import Event
 
     def complete():
         return
 
+class DummyEditwin:
+    def __init__(self, root, text):
+        self.root = root
+        self.text = text
+        self.indentwidth = 8
+        self.tabwidth = 8
+        self.context_use_ps1 = True
+        
 
 class AutoCompleteTest(unittest.TestCase):
 
         requires('gui')
         cls.root = Tk()
         mac.setupApp(cls.root, None)
-        cls.editor = EditorWindow(root=cls.root)
-        cls.text = cls.editor.text
+        cls.text = Text(cls.root)
+        cls.editor = DummyEditwin(cls.root, cls.text)
 
     @classmethod
     def tearDownClass(cls):