From c858dac7d879ccad3c10e5388ff3d1a29e301519 2011-09-29 19:56:06 From: Thomas Kluyver Date: 2011-09-29 19:56:06 Subject: [PATCH] Test that specifying a range beyond the end of the current session doesn't raise an error. --- diff --git a/IPython/core/tests/test_history.py b/IPython/core/tests/test_history.py index f9536d7..a1f4530 100644 --- a/IPython/core/tests/test_history.py +++ b/IPython/core/tests/test_history.py @@ -39,6 +39,9 @@ def test_history(): nt.assert_equal(ip.history_manager.input_hist_raw, [''] + hist) + # Check whether specifying a range beyond the end of the current + # session results in an error (gh-804) + ip.magic('%hist 2-500') # New session ip.history_manager.reset()