]> granicus.if.org Git - python/commitdiff
Issue #18226: Fix ImportError and subsequent TypeError in 2.7 backport.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 15 Aug 2013 19:07:58 +0000 (15:07 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 15 Aug 2013 19:07:58 +0000 (15:07 -0400)
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).

Lib/idlelib/idle_test/test_formatparagraph.py

index 2ec8232335bf0bba723179a5d5a43ab48fa28468..fca9540e92cb5f8c82d6ba6c972351adf1a40c0e 100644 (file)
@@ -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.