TST: Prevent dividend test from using non-trading day.

Use the next events' datetime for the transaction instead of
incrementing by a calendar day.
This commit is contained in:
Eddie Hebert
2013-04-25 15:41:26 -04:00
parent fd6c71286d
commit d0651706ac
+1 -1
View File
@@ -382,7 +382,7 @@ class TestDividendPerformance(unittest.TestCase):
events[2].dt
)
txn = create_txn(1, 10.0, -100, self.dt + oneday)
txn = create_txn(1, 10.0, -100, events[1].dt)
events.insert(1, txn)
events.insert(0, dividend)
perf_tracker = perf.PerformanceTracker(self.sim_params)