From b1883817478c7db5cbcdb47c81b158c43bf8ca33 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Fri, 15 Jul 2016 13:02:44 -0400 Subject: [PATCH] MAINT: Pass explicit dtype to np.full. --- tests/test_algorithm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_algorithm.py b/tests/test_algorithm.py index 8ec6a0f8..ed6aa677 100644 --- a/tests/test_algorithm.py +++ b/tests/test_algorithm.py @@ -3485,11 +3485,11 @@ class TestOrderCancelation(WithDataPortal, def make_equity_daily_bar_data(cls): yield 1, pd.DataFrame( { - 'open': np.full(3, 1), - 'high': np.full(3, 1), - 'low': np.full(3, 1), - 'close': np.full(3, 1), - 'volume': np.full(3, 1), + 'open': np.full(3, 1, dtype=np.float64), + 'high': np.full(3, 1, dtype=np.float64), + 'low': np.full(3, 1, dtype=np.float64), + 'close': np.full(3, 1, dtype=np.float64), + 'volume': np.full(3, 1, dtype=np.float64), }, index=cls.sim_params.sessions, )