mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
dd754caf14
commit
2e43b64c94
4 changed files with 15 additions and 1 deletions
|
@ -47,6 +47,17 @@ def tearDownModule():
|
|||
root.destroy()
|
||||
root = dialog = None
|
||||
|
||||
class ConfigDialogTest(unittest.TestCase):
|
||||
|
||||
def test_help(self):
|
||||
dialog.note.select(dialog.keyspage)
|
||||
saved = configdialog.view_text
|
||||
view = configdialog.view_text = Func()
|
||||
dialog.help()
|
||||
s = view.kwds['contents']
|
||||
self.assertTrue(s.startswith('When you click'))
|
||||
self.assertTrue(s.endswith('a different name.\n'))
|
||||
configdialog.view_text = saved
|
||||
|
||||
class FontPageTest(unittest.TestCase):
|
||||
"""Test that font widgets enable users to make font changes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue