Show More
@@ -25,8 +25,8 b' class HistoryTest(unittest.TestCase):' | |||
|
25 | 25 | with TemporaryDirectory() as tmpdir: |
|
26 | 26 | histfile = os.path.realpath(os.path.join(tmpdir, 'history.json')) |
|
27 | 27 | # Ensure that we restore the history management that we mess with in |
|
28 |
# this test doesn't affect the IPython instance used by the test |
|
|
29 | # beyond this test. | |
|
28 | # this test doesn't affect the IPython instance used by the test | |
|
29 | # suite beyond this test. | |
|
30 | 30 | hist_manager_ori = ip.history_manager |
|
31 | 31 | try: |
|
32 | 32 | ip.history_manager = HistoryManager(ip) |
@@ -40,9 +40,9 b' class HistoryTest(unittest.TestCase):' | |||
|
40 | 40 | ip.save_history() |
|
41 | 41 | ip.history_manager.input_hist_raw[:] = [] |
|
42 | 42 | ip.reload_history() |
|
43 |
self.assert |
|
|
43 | self.assertEqual(len(ip.history_manager.input_hist_raw), len(hist)) | |
|
44 | 44 | for i,h in enumerate(hist): |
|
45 |
|
|
|
45 | self.assertEqual(hist[i], ip.history_manager.input_hist_raw[i]) | |
|
46 | 46 | finally: |
|
47 | 47 | # Restore history manager |
|
48 | 48 | ip.history_manager = hist_manager_ori |
General Comments 0
You need to be logged in to leave comments.
Login now