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 |
|
|
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,6 +228,7 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 |
|
|
234 | - session specific in HistoryManager |
General Comments 0
You need to be logged in to leave comments.
Login now