TST: Fix expected value now that assertion is more strict

in newer pandas
This commit is contained in:
Richard Frank
2016-02-11 18:46:43 -05:00
parent 41231c5c59
commit ff485950b8
+2 -2
View File
@@ -348,9 +348,9 @@ def handle_data(context, data):
output = test_algo.run(source)
self.assertIsNotNone(output)
history_trace = test_algo.history_trace
df.columns = self.env.asset_finder.retrieve_all(df.columns)
for i, received in enumerate(history_trace[bar_count - 1:]):
for i, received in enumerate(test_algo.history_trace[bar_count - 1:]):
expected = df.iloc[i:i + bar_count]
assert_frame_equal(expected, received)