Skip to content

Commit

Permalink
Fixed bug causing --show-task-ratio to crash in Python 3. Fixes #540.
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Feb 17, 2017
1 parent a0b9607 commit e398dcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ def main():
names = set(arguments) & set(locusts.keys())
locust_classes = [locusts[n] for n in names]
else:
locust_classes = locusts.values()
# list() call is needed to consume the dict_view object in Python 3
locust_classes = list(locusts.values())

if options.show_task_ratio:
console_logger.info("\n Task ratio per locust class")
Expand Down

0 comments on commit e398dcb

Please sign in to comment.