Skip to content

Commit

Permalink
Make that a named method
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Jul 19, 2020
1 parent 18c78cd commit 8a4851e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def is_dead(self, i):
cache[i] = False
return result

def __iter__(self):
def all_matching_strings(self):
"""Iterate over all strings matched by this automaton
in shortlex-ascending order."""
queue = deque([(self.start, b"")])
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/tests/quality/test_shrinking_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def iter_values(strategy, unique_by=lambda s: s):
seen = set()

while True:
for s in learner.dfa:
for s in learner.dfa.all_matching_strings():
# We learned this badly. Relearn this particular
# string and restart the loop.
if not learner.member(s):
Expand Down

0 comments on commit 8a4851e

Please sign in to comment.