summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-08-15 20:19:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-08-15 20:19:13 (GMT)
commit29c3fc5d8f9e14e10783ab0ecc1bd15e1144cd07 (patch)
tree83c58159a80c7284f54f6f1ec3788e16a0e2a136 /Lib/idlelib/idle_test
parentc2564f9329d9149d8fb904b065f7876699fea267 (diff)
downloadcpython-29c3fc5d8f9e14e10783ab0ecc1bd15e1144cd07.zip
cpython-29c3fc5d8f9e14e10783ab0ecc1bd15e1144cd07.tar.gz
cpython-29c3fc5d8f9e14e10783ab0ecc1bd15e1144cd07.tar.bz2
Issue #18732: Remove unused* parameter output_sep from IdleHistory.History
and paired splits and joins that do nothing when output_sep is its default \n. *It in unused in that the class in only instantiated once, with the default. Make a few other changes in .fetch and its test.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_idlehistory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_idlehistory.py b/Lib/idlelib/idle_test/test_idlehistory.py
index c48529d..b27db91 100644
--- a/Lib/idlelib/idle_test/test_idlehistory.py
+++ b/Lib/idlelib/idle_test/test_idlehistory.py
@@ -87,6 +87,7 @@ class FetchTest(unittest.TestCase):
# The last two are diagnostic of fetch internals.
History = self.history
History.fetch(reverse)
+
Equal = self.assertEqual
Equal(self.text.get('iomark', 'end-1c'), line)
Equal(self.text._bell, bell)
@@ -94,6 +95,7 @@ class FetchTest(unittest.TestCase):
self.text._bell = False
Equal(History.prefix, prefix)
Equal(History.pointer, index)
+ Equal(self.text.compare("insert", '==', "end-1c"), 1)
def test_fetch_prev_cyclic(self):
prefix = ''