You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromunittest.mockimportMockimportpytestfromhypothesisimportsettings, given, strategiesasst@pytest.fixture(scope="module") # or any other scopedefmock_fixture():
returnMock()
@settings(backend="crosshair")@given(xs=st.integers())deftest(mock_fixture, xs):
assertxs!=123456789
mock_fixture is of course completely pointless, but with the crosshair backend causes the following error:
Traceback (most recent call last):
...
File ".../repro.py", line 15, in test@given(xs=integers())
File "hypothesis/core.py", line 1829, in wrapped_testraise the_error_hypothesis_found
File "crosshair/libimpl/builtinslib.py", line 1238, in __hash__returnself.__index__().__hash__()
File "crosshair/libimpl/builtinslib.py", line 1260, in __index__
space = context_statespace()
File "crosshair/statespace.py", line 269, in context_statespaceraise CrossHairInternal("Not in a statespace context")
crosshair.util.CrossHairInternal: Not in a statespace context
I haven't bisected, but this error is new from somewhere in the crosshair-tool .74 -> .82 and/or hypothesis-crosshair .16 -> .19 upgrade range.
mock_fixture
is of course completely pointless, but with thecrosshair
backend causes the following error:I haven't bisected, but this error is new from somewhere in the crosshair-tool .74 -> .82 and/or hypothesis-crosshair .16 -> .19 upgrade range.
links: HypothesisWorks/hypothesis#4190, which is an update to HypothesisWorks/hypothesis#4034
The text was updated successfully, but these errors were encountered: