Skip to content

Commit 7ef94d3

Browse files
committed
clarify error message
1 parent 9acdcee commit 7ef94d3

File tree

1 file changed

+1
-1
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+1
-1
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def check_sample(
7272
)
7373
elif not isinstance(values, (OrderedDict, abc.Sequence, enum.EnumMeta)):
7474
raise InvalidArgument(
75-
f"Cannot sample from {values!r}, not an ordered collection. "
75+
f"Cannot sample from {values!r} because it is not an ordered collection. "
7676
f"Hypothesis goes to some length to ensure that the {strategy_name} "
7777
"strategy has stable results between runs. To replay a saved "
7878
"example, the sampled values must have the same iteration order "

0 commit comments

Comments
 (0)