Skip to content

Commit

Permalink
TST: Prevent random integer during unit test from exceeding bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie Hebert committed Apr 16, 2013
1 parent 643d556 commit 5a73ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipline/utils/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def create_random_simulation_parameters():

random_index = random.randint(
0,
len(treasury_curves)
len(treasury_curves) - 1
)

start_dt = treasury_curves.keys()[random_index]
Expand Down

0 comments on commit 5a73ec7

Please sign in to comment.