From 38f73dafb39e999d01431169fc7115c83ac6f447 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 27 Jan 2019 10:47:24 +0100 Subject: [PATCH] Fix indexing error --- freqtrade/tests/test_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/tests/test_misc.py b/freqtrade/tests/test_misc.py index c7ff1f077..2da6b8718 100644 --- a/freqtrade/tests/test_misc.py +++ b/freqtrade/tests/test_misc.py @@ -41,7 +41,7 @@ def test_common_datearray(default_conf) -> None: assert dates.size == dataframes['UNITTEST/BTC']['date'].size assert dates[0] == dataframes['UNITTEST/BTC']['date'][0] - assert dates[-1] == dataframes['UNITTEST/BTC']['date'][-1] + assert dates[-1] == dataframes['UNITTEST/BTC']['date'].iloc[-1] def test_file_dump_json(mocker) -> None: