diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-05-31 08:26:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-31 08:26:35 (GMT) |
commit | ba0430211f5101c9d748d72b03926ca79c5252a8 (patch) | |
tree | 9c95d46313ed986fd5f99eba803d2f7fa521d732 /Lib/idlelib/idle_test | |
parent | 14a0e16c8805f7ba7c98132ead815dcfdf0e9d33 (diff) | |
download | cpython-ba0430211f5101c9d748d72b03926ca79c5252a8.zip cpython-ba0430211f5101c9d748d72b03926ca79c5252a8.tar.gz cpython-ba0430211f5101c9d748d72b03926ca79c5252a8.tar.bz2 |
IDLE - Capitalize search dialogs' 'Close' button label. (#13691)
It seems to be the only widget label not capitalized.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_searchbase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_searchbase.py b/Lib/idlelib/idle_test/test_searchbase.py index 09a7fff..6dd4d79 100644 --- a/Lib/idlelib/idle_test/test_searchbase.py +++ b/Lib/idlelib/idle_test/test_searchbase.py @@ -32,6 +32,7 @@ class SearchDialogBaseTest(unittest.TestCase): @classmethod def tearDownClass(cls): + cls.root.update_idletasks() cls.root.destroy() del cls.root @@ -149,7 +150,7 @@ class SearchDialogBaseTest(unittest.TestCase): # Look for close button command in buttonframe closebuttoncommand = '' for child in self.dialog.buttonframe.winfo_children(): - if child['text'] == 'close': + if child['text'] == 'Close': closebuttoncommand = child['command'] self.assertIn('close', closebuttoncommand) |