Skip to content

Commit

Permalink
Fix error message for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Dec 19, 2018
1 parent f314893 commit 13bca2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,14 @@ def floats(
note_deprecation(
"min_value=%r cannot be exactly represented as a float of width "
"%d, which will be an error in a future version. Use min_value=%r "
"instead." % (min_value, width, min_arg),
"instead." % (min_arg, width, min_value),
since="2018-10-10",
)
if max_value != max_arg:
note_deprecation(
"max_value=%r cannot be exactly represented as a float of width "
"%d, which will be an error in a future version. Use max_value=%r "
"instead" % (max_value, width, max_arg),
"instead" % (max_arg, width, max_value),
since="2018-10-10",
)

Expand Down

0 comments on commit 13bca2b

Please sign in to comment.