Show More
@@ -83,6 +83,11 b' def test_history():' | |||
|
83 | 83 | ip.magic_save(testfilename + " ~1/1-3") |
|
84 | 84 | testfile = open(testfilename, "r") |
|
85 | 85 | nt.assert_equal(testfile.read(), "\n".join(hist)) |
|
86 | ||
|
87 | # Duplicate line numbers - check that it doesn't crash, and | |
|
88 | # gets a new session | |
|
89 | ip.history_manager.store_inputs(1, "rogue") | |
|
90 | nt.assert_equal(ip.history_manager.session_number, 3) | |
|
86 | 91 | finally: |
|
87 | 92 | # Restore history manager |
|
88 | 93 | ip.history_manager = hist_manager_ori |
General Comments 0
You need to be logged in to leave comments.
Login now