Commit e29bb722 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #18226: Fix ImportError and subsequent TypeError in 2.7 backport.

Running py27\PCbuild> python_d -m test.regrtest -ugui test_idle
ignores the exceptions and gives no indication of a problem (fixed in 3.3).
parent 2effdb99
......@@ -2,8 +2,8 @@
import unittest
from idlelib import FormatParagraph as fp
from idlelib.EditorWindow import EditorWindow
from tkinter import Tk, Text, TclError
from test.support import requires
from Tkinter import Tk, Text, TclError
from test.test_support import requires
class Is_Get_Test(unittest.TestCase):
......@@ -238,7 +238,7 @@ class TextWrapper:
class Editor:
def __init__(self, root):
self.text = TextWrapper(root)
get_selection_indices = EditorWindow. get_selection_indices
get_selection_indices = EditorWindow. get_selection_indices.im_func
class FormatEventTest(unittest.TestCase):
"""Test the formatting of text inside a Text widget.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment