From 3552fa431b01b35d7b8a7e2b18c793c61d43cf54 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sat, 22 Jul 2023 11:40:52 +0900 Subject: [PATCH] fix test --- tests/data/test_btanalysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/test_btanalysis.py b/tests/data/test_btanalysis.py index 4cd11a684..8594ad4ec 100644 --- a/tests/data/test_btanalysis.py +++ b/tests/data/test_btanalysis.py @@ -356,7 +356,7 @@ def test_calculate_expectancy_ratio(testdatadir): bt_data = load_backtest_data(filename) expectancy_ratio = calculate_expectancy_ratio(DataFrame()) - assert expectancy_ratio == 0.0 + assert expectancy_ratio == float('inf') expectancy_ratio = calculate_expectancy_ratio(bt_data) assert isinstance(expectancy_ratio, float)