Skip to content

Commit

Permalink
Don't rely on dict item ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 2, 2014
1 parent 075cd34 commit db7036d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion profilehooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def decorator(fn):
break
else:
raise ValueError('only these profilers are available: %s'
% ', '.join(AVAILABLE_PROFILERS))
% ', '.join(sorted(AVAILABLE_PROFILERS)))
fp = profiler_class(fn, skip=skip, filename=filename,
immediate=immediate, dirs=dirs,
sort=sort, entries=entries)
Expand Down
2 changes: 1 addition & 1 deletion test_profilehooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def doctest_profile_with_bad_args():
... return x + y * z
Traceback (most recent call last):
...
ValueError: only these profilers are available: profile...
ValueError: only these profilers are available: ...profile...
"""

Expand Down

0 comments on commit db7036d

Please sign in to comment.