summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-01-23 04:13:29 (GMT)
committerGitHub <noreply@github.com>2020-01-23 04:13:29 (GMT)
commit3b7618809df647574e8aad4c2d869a1d55df147c (patch)
treee35f6419777dc616456628d2363aab0655d97665 /Lib/idlelib/idle_test
parentfdb21609d944941f0732df72dc3d07a7a9a7efea (diff)
downloadcpython-3b7618809df647574e8aad4c2d869a1d55df147c.zip
cpython-3b7618809df647574e8aad4c2d869a1d55df147c.tar.gz
cpython-3b7618809df647574e8aad4c2d869a1d55df147c.tar.bz2
bpo-39050: The Help button in IDLE's config menu works again (GH-17611)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 2e43b64c94e49f7133b9c26e84c9519935c49063) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_configdialog.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
index 1f14ed1..7c575d0 100644
--- a/Lib/idlelib/idle_test/test_configdialog.py
+++ b/Lib/idlelib/idle_test/test_configdialog.py
@@ -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.