Show More
@@ -128,7 +128,11 b' def test_timestamp_type():' | |||||
128 |
|
128 | |||
129 | def test_hist_file_config(): |
|
129 | def test_hist_file_config(): | |
130 | cfg = Config() |
|
130 | cfg = Config() | |
131 | cfg.HistoryManager.hist_file = tempfile.mktemp() |
|
131 | tfile = tempfile.NamedTemporaryFile(delete=False) | |
132 | hm = HistoryManager(shell=get_ipython(), config=cfg) |
|
132 | cfg.HistoryManager.hist_file = tfile.name | |
133 | nt.assert_equals(hm.hist_file, cfg.HistoryManager.hist_file) |
|
133 | try: | |
|
134 | hm = HistoryManager(shell=get_ipython(), config=cfg) | |||
|
135 | nt.assert_equals(hm.hist_file, cfg.HistoryManager.hist_file) | |||
|
136 | finally: | |||
|
137 | os.remove(tfile.name) | |||
134 |
|
138 |
General Comments 0
You need to be logged in to leave comments.
Login now