Show More
@@ -236,6 +236,16 b' def doctest_hist_op():' | |||||
236 | >>> |
|
236 | >>> | |
237 | """ |
|
237 | """ | |
238 |
|
238 | |||
|
239 | def test_hist_pof(): | |||
|
240 | ip = get_ipython() | |||
|
241 | ip.run_cell(u"1+2", store_history=True) | |||
|
242 | #raise Exception(ip.history_manager.session_number) | |||
|
243 | #raise Exception(list(ip.history_manager._get_range_session())) | |||
|
244 | with TemporaryDirectory() as td: | |||
|
245 | tf = os.path.join(td, 'hist.py') | |||
|
246 | ip.run_line_magic('history', '-pof %s' % tf) | |||
|
247 | assert os.path.isfile(tf) | |||
|
248 | ||||
239 |
|
249 | |||
240 | @dec.skip_without('sqlite3') |
|
250 | @dec.skip_without('sqlite3') | |
241 | def test_macro(): |
|
251 | def test_macro(): |
General Comments 0
You need to be logged in to leave comments.
Login now