BUG: Fixes a bug in the test date_gen for non-daily timedeltas

This commit is contained in:
Joe Jevnik
2014-11-17 13:16:30 -05:00
parent a2fb729c00
commit 25c3297c9d
+1 -1
View File
@@ -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