##// END OF EJS Templates
remove an obsolete multiline history test
Julian Taylor -
Show More
@@ -80,24 +80,6 b' class InteractiveShellTestCase(unittest.TestCase):'
80 hist = self.rl_hist_entries(ip.readline, 3)
80 hist = self.rl_hist_entries(ip.readline, 3)
81 self.assertEquals(hist, ghist + ['sourc€\nsource2'])
81 self.assertEquals(hist, ghist + ['sourc€\nsource2'])
82
82
83 @skipif(not get_ipython().has_readline, 'no readline')
84 def test_replace_multiline_hist_replaces(self):
85 """Test that multiline entries are replaced"""
86 ip = get_ipython()
87 ip.multiline_history = True
88
89 ip.readline.add_history(u'line0')
90 #start cell
91 ip.hlen_before_cell = ip.readline.get_current_history_length()
92 ip.readline.add_history('l€ne1')
93 ip.readline.add_history('line2')
94 #replace cell with single line
95 ip._replace_rlhist_multiline(u'l€ne1\nline2')
96
97 self.assertEquals(ip.readline.get_current_history_length(),
98 ip.hlen_before_cell)
99 hist = self.rl_hist_entries(ip.readline, 2)
100 self.assertEquals(hist, [u'line0', 'l€ne1\nline2'])
101
83
102 @skipif(not get_ipython().has_readline, 'no readline')
84 @skipif(not get_ipython().has_readline, 'no readline')
103 def test_replace_multiline_hist_replaces_twice(self):
85 def test_replace_multiline_hist_replaces_twice(self):
General Comments 0
You need to be logged in to leave comments. Login now