summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-01-03 03:04:06 (GMT)
committerGitHub <noreply@github.com>2019-01-03 03:04:06 (GMT)
commitaff0adabf3ace62073076f4ce875ff568f2d3180 (patch)
tree157f0f7ad9d4f62e55cc99c000f6e82af30a0d01 /Lib/idlelib/idle_test
parente9a044ec16989bd4b39763c0588c17200a925350 (diff)
downloadcpython-aff0adabf3ace62073076f4ce875ff568f2d3180.zip
cpython-aff0adabf3ace62073076f4ce875ff568f2d3180.tar.gz
cpython-aff0adabf3ace62073076f4ce875ff568f2d3180.tar.bz2
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_searchbase.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/idlelib/idle_test/test_searchbase.py b/Lib/idlelib/idle_test/test_searchbase.py
index 46c3ad1..09a7fff 100644
--- a/Lib/idlelib/idle_test/test_searchbase.py
+++ b/Lib/idlelib/idle_test/test_searchbase.py
@@ -4,7 +4,8 @@
import unittest
from test.support import requires
-from tkinter import Tk, Frame ##, BooleanVar, StringVar
+from tkinter import Tk
+from tkinter.ttk import Frame
from idlelib import searchengine as se
from idlelib import searchbase as sdb
from idlelib.idle_test.mock_idle import Func
@@ -97,11 +98,12 @@ class SearchDialogBaseTest(unittest.TestCase):
self.dialog.top = self.root
frame, label = self.dialog.make_frame()
self.assertEqual(label, '')
- self.assertIsInstance(frame, Frame)
+ self.assertEqual(str(type(frame)), "<class 'tkinter.ttk.Frame'>")
+ # self.assertIsInstance(frame, Frame) fails when test is run by
+ # test_idle not run from IDLE editor. See issue 33987 PR.
frame, label = self.dialog.make_frame('testlabel')
self.assertEqual(label['text'], 'testlabel')
- self.assertIsInstance(frame, Frame)
def btn_test_setup(self, meth):
self.dialog.top = self.root