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