summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_configdialog.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-06-01 23:23:00 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2018-06-01 23:23:00 (GMT)
commit29996a1c4e8bd6dde6adce2b44d11a0982a47a3a (patch)
treec6f08943343b54a41e9ed3da85a15325819aebf0 /Lib/idlelib/idle_test/test_configdialog.py
parent6854e803b73ac4d02ba160d514b8a53dd7a62905 (diff)
downloadcpython-29996a1c4e8bd6dde6adce2b44d11a0982a47a3a.zip
cpython-29996a1c4e8bd6dde6adce2b44d11a0982a47a3a.tar.gz
cpython-29996a1c4e8bd6dde6adce2b44d11a0982a47a3a.tar.bz2
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
Instead of displaying a fixed number of lines, some blank, Code Context now displays the variable number of actual context lines. When there are no context lines, it shows a single blank line to indicate that the feature is turned on. The Code Context configuration option is changed from 'numlines' (default 3) to 'maxlines' (default 15) to avoid possible interference between user settings for the old and new versions of Code Context.
Diffstat (limited to 'Lib/idlelib/idle_test/test_configdialog.py')
-rw-r--r--Lib/idlelib/idle_test/test_configdialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
index 982dc0b..26aba32 100644
--- a/Lib/idlelib/idle_test/test_configdialog.py
+++ b/Lib/idlelib/idle_test/test_configdialog.py
@@ -1170,7 +1170,7 @@ class GenPageTest(unittest.TestCase):
def test_context(self):
self.page.context_int.delete(0, 'end')
self.page.context_int.insert(0, '1')
- self.assertEqual(extpage, {'CodeContext': {'numlines': '1'}})
+ self.assertEqual(extpage, {'CodeContext': {'maxlines': '1'}})
def test_source_selected(self):
d = self.page