diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2017-08-27 20:39:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 20:39:41 (GMT) |
commit | 3457f428964d0fd6ab601272ead276a9bf8b1eaf (patch) | |
tree | 8effc4fc55e8f90e113a868fe3d7bb03c0e35351 /Lib/idlelib/idle_test | |
parent | 7028e5986fceeeb73dffb5d5bf8f03d88f73b63d (diff) | |
download | cpython-3457f428964d0fd6ab601272ead276a9bf8b1eaf.zip cpython-3457f428964d0fd6ab601272ead276a9bf8b1eaf.tar.gz cpython-3457f428964d0fd6ab601272ead276a9bf8b1eaf.tar.bz2 |
bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog tests. (#3220)
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_configdialog.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index c947da1..f116538 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -643,7 +643,7 @@ class HighPageTest(unittest.TestCase): eq = self.assertEqual d = self.page d.button_delete_custom.state(('!disabled',)) - yesno = configdialog.tkMessageBox.askyesno = Func() + yesno = d.askyesno = Func() dialog.deactivate_current_config = Func() dialog.activate_config_changes = Func() @@ -678,7 +678,7 @@ class HighPageTest(unittest.TestCase): eq(d.set_theme_type.called, 1) del dialog.activate_config_changes, dialog.deactivate_current_config - del configdialog.tkMessageBox.askyesno + del d.askyesno class KeysPageTest(unittest.TestCase): @@ -1034,7 +1034,7 @@ class KeysPageTest(unittest.TestCase): eq = self.assertEqual d = self.page d.button_delete_custom_keys.state(('!disabled',)) - yesno = configdialog.tkMessageBox.askyesno = Func() + yesno = d.askyesno = Func() dialog.deactivate_current_config = Func() dialog.activate_config_changes = Func() @@ -1069,7 +1069,7 @@ class KeysPageTest(unittest.TestCase): eq(d.set_keys_type.called, 1) del dialog.activate_config_changes, dialog.deactivate_current_config - del configdialog.tkMessageBox.askyesno + del d.askyesno class GenPageTest(unittest.TestCase): |