From 25c3297c9dda15ab6715508c296bae4b554f9ace Mon Sep 17 00:00:00 2001 From: Joe Jevnik Date: Thu, 13 Nov 2014 12:30:13 -0500 Subject: [PATCH] BUG: Fixes a bug in the test date_gen for non-daily timedeltas --- zipline/sources/test_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/sources/test_source.py b/zipline/sources/test_source.py index f3b7fff1..06579910 100644 --- a/zipline/sources/test_source.py +++ b/zipline/sources/test_source.py @@ -82,7 +82,7 @@ def date_gen(start=datetime(2006, 6, 6, 12, tzinfo=pytz.utc), if daily_delta: return env.next_trading_day(cur) else: - return env.next_open_and_close + return env.next_open_and_close(cur)[0] else: return cur