diff --git a/tests/unit/misc/test_cmdhistory.py b/tests/unit/misc/test_cmdhistory.py index 44c6c2d82..0e6f9748e 100644 --- a/tests/unit/misc/test_cmdhistory.py +++ b/tests/unit/misc/test_cmdhistory.py @@ -84,8 +84,7 @@ def test_start_no_items(hist): def test_getitem(hist): """Test __getitem__.""" - for i in range(0, len(HISTORY)): - assert hist[i] == HISTORY[i] + assert hist[0] == HISTORY[0] def test_setitem(hist):