From 666b49baa0befd4b42636a89dff840623c4b8167 2012-11-22 14:46:47 From: Takafumi Arakaki Date: 2012-11-22 14:46:47 Subject: [PATCH] Use start=1 for enumerate rather than doing i+1 --- diff --git a/IPython/core/tests/test_history.py b/IPython/core/tests/test_history.py index 63b6178..8797c8b 100644 --- a/IPython/core/tests/test_history.py +++ b/IPython/core/tests/test_history.py @@ -73,7 +73,7 @@ def test_history(): gothist = ip.history_manager.get_range(-1, 1, 4) nt.assert_equal(list(gothist), zip([1,1,1],[1,2,3], hist)) - newhist = [(2, i + 1, c) for (i, c) in enumerate(newcmds)] + newhist = [(2, i, c) for (i, c) in enumerate(newcmds, 1)] # Check get_hist_tail gothist = ip.history_manager.get_tail(5, output=True,