diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-08 18:49:07 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-08 18:49:07 (GMT) |
commit | 6d4f8f0fea6a60a02fe4d0e4b9fabb6549f1416a (patch) | |
tree | aa2dff2351b48b4e96205c98f20a38078cd23958 | |
parent | 4fb01ffe663774518a1a6e6f068bd46804fd0a46 (diff) | |
parent | 7244d775db858004d8cc21869e79d4eebc27887b (diff) | |
download | cpython-6d4f8f0fea6a60a02fe4d0e4b9fabb6549f1416a.zip cpython-6d4f8f0fea6a60a02fe4d0e4b9fabb6549f1416a.tar.gz cpython-6d4f8f0fea6a60a02fe4d0e4b9fabb6549f1416a.tar.bz2 |
Merge heads.
-rw-r--r-- | Lib/idlelib/idle_test/test_autocomplete.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Lib/idlelib/idle_test/test_autocomplete.py b/Lib/idlelib/idle_test/test_autocomplete.py index e4034eb..6a33b45 100644 --- a/Lib/idlelib/idle_test/test_autocomplete.py +++ b/Lib/idlelib/idle_test/test_autocomplete.py @@ -5,7 +5,6 @@ from tkinter import Tk, Text, TclError 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 @@ -13,6 +12,14 @@ class AutoCompleteWindow: 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): @@ -21,8 +28,8 @@ 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): |