diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-08-15 20:19:07 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-08-15 20:19:07 (GMT) |
commit | 1703df6c931a4645a74f860ce9163e7f89cee4e7 (patch) | |
tree | ae7eed25939c7a01d15446822f746a1825f84145 /Lib/idlelib/idle_test | |
parent | 74b3290c104d6bb04c1ddb18299d67142678069a (diff) | |
download | cpython-1703df6c931a4645a74f860ce9163e7f89cee4e7.zip cpython-1703df6c931a4645a74f860ce9163e7f89cee4e7.tar.gz cpython-1703df6c931a4645a74f860ce9163e7f89cee4e7.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.py | 2 |
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 56256b8..c15a926 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 = '' |