mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-24 13:00:57 +08:00
BUG: Fixes a bug in the test date_gen for non-daily timedeltas
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user