##// END OF EJS Templates
Fix formatting issues
Aleksey Bogdanov -
Show More
@@ -361,8 +361,9 b' class HistoryAccessor(HistoryAccessorBase):'
361 self.writeout_cache()
361 self.writeout_cache()
362 if not include_latest:
362 if not include_latest:
363 n += 1
363 n += 1
364 cur = self._run_sql("ORDER BY session DESC, line DESC LIMIT ?",
364 cur = self._run_sql(
365 (n,), raw=raw, output=output)
365 "ORDER BY session DESC, line DESC LIMIT ?", (n,), raw=raw, output=output
366 )
366 if not include_latest:
367 if not include_latest:
367 return reversed(list(cur)[1:])
368 return reversed(list(cur)[1:])
368 return reversed(list(cur))
369 return reversed(list(cur))
@@ -228,11 +228,12 b' def test_histmanager_disabled():'
228 # hist_file should not be created
228 # hist_file should not be created
229 assert hist_file.exists() is False
229 assert hist_file.exists() is False
230
230
231
231 def test_get_tail_session_awareness():
232 def test_get_tail_session_awareness():
232 """Test .get_tail() is:
233 """Test .get_tail() is:
233 - session specific in HistoryManager
234 - session specific in HistoryManager
234 - session agnostic in HistoryAccessor
235 - session agnostic in HistoryAccessor
235 same for .get_last_session_id()
236 same for .get_last_session_id()
236 """
237 """
237 ip = get_ipython()
238 ip = get_ipython()
238 with TemporaryDirectory() as tmpdir:
239 with TemporaryDirectory() as tmpdir:
General Comments 0
You need to be logged in to leave comments. Login now