Skip to content

Commit

Permalink
fixup annotate searchstrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Oct 18, 2017
1 parent 282b01a commit 5cc0acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hypothesis/searchstrategy/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from __future__ import division, print_function, absolute_import

from hypothesis.internal.compat import hrange, getfullargspec
from hypothesis.internal.compat import getfullargspec
from hypothesis.internal.reflection import arg_string, \
convert_keyword_arguments, convert_positional_arguments
from hypothesis.searchstrategy.strategies import SearchStrategy
Expand Down
10 changes: 5 additions & 5 deletions src/hypothesis/searchstrategy/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@
from collections import defaultdict

import hypothesis.internal.conjecture.utils as cu

from hypothesis.core import find
from hypothesis.errors import NoExamples, NoSuchExample, Unsatisfiable, \
UnsatisfiedAssumption
from hypothesis.control import assume, reject, _current_build_context
from hypothesis._settings import settings, Verbosity, note_deprecation
from hypothesis._settings import Verbosity, settings, note_deprecation
from hypothesis.internal.compat import hrange
from hypothesis.utils.conventions import UniqueIdentifier
from hypothesis.internal.lazyformat import lazyformat
from hypothesis.internal.reflection import get_pretty_function_description

if False:
from typing import Any, Set, Dict, Tuple, FrozenSet, DefaultDict
from typing import Any, Set, Dict, Tuple, FrozenSet, DefaultDict # noqa
listener_type = DefaultDict['SearchStrategy', Set['SearchStrategy']]

calculating = UniqueIdentifier('calculating')
Expand Down Expand Up @@ -269,6 +267,7 @@ def example(self, random=None):
'#drawing-interactively-in-tests for more details.'
)


# Conjecture will always try the zero example first. This would result
# in us producing the same example each time, which is boring, so we
# deliberately skip the first example it feeds us.
Expand All @@ -281,7 +280,8 @@ def condition(x):
first.append(x)
return False
try:
return find(
import hypothesis
return hypothesis.find(
self,
condition,
random=random,
Expand Down

0 comments on commit 5cc0acd

Please sign in to comment.