summaryrefslogtreecommitdiff
path: root/Lib/idlelib/idle_test/test_searchbase.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-07-10 20:21:31 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-07-10 20:21:31 -0400
commitb50fa3e242d1da3a2e500909b7958eb6fe99fff8 (patch)
tree705696c50ef327cc73fdbbb32c7ce4f44839aeb5 /Lib/idlelib/idle_test/test_searchbase.py
parent5ebfdc9de3428a14a008c8508eebe74c12afca63 (diff)
downloadcpython-b50fa3e242d1da3a2e500909b7958eb6fe99fff8.tar.gz
Issue #27477: Convert IDLE search dialogs to using ttk widgets.
Diffstat (limited to 'Lib/idlelib/idle_test/test_searchbase.py')
-rw-r--r--Lib/idlelib/idle_test/test_searchbase.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/idlelib/idle_test/test_searchbase.py b/Lib/idlelib/idle_test/test_searchbase.py
index a0b1231ecd..d769fa2fc2 100644
--- a/Lib/idlelib/idle_test/test_searchbase.py
+++ b/Lib/idlelib/idle_test/test_searchbase.py
@@ -1,8 +1,7 @@
-'''Unittests for idlelib/searchbase.py
+'''tests idlelib.searchbase.
Coverage: 99%. The only thing not covered is inconsequential --
testing skipping of suite when self.needwrapbutton is false.
-
'''
import unittest
from test.support import requires
@@ -120,11 +119,6 @@ class SearchDialogBaseTest(unittest.TestCase):
var, label = spec
self.assertEqual(button['text'], label)
self.assertEqual(var.get(), state)
- if state == 1:
- button.deselect()
- else:
- button.select()
- self.assertEqual(var.get(), 1 - state)
def test_create_other_buttons(self):
for state in (False, True):
@@ -140,10 +134,6 @@ class SearchDialogBaseTest(unittest.TestCase):
# hit other button, then this one
# indexes depend on button order
self.assertEqual(var.get(), state)
- buttons[val].select()
- self.assertEqual(var.get(), 1 - state)
- buttons[1-val].select()
- self.assertEqual(var.get(), state)
def test_make_button(self):
self.dialog.top = self.root
@@ -162,6 +152,5 @@ class SearchDialogBaseTest(unittest.TestCase):
self.assertIn('close', closebuttoncommand)
-
if __name__ == '__main__':
unittest.main(verbosity=2, exit=2)