Skip to content

Commit 75b290f

Browse files
pschanelyZac-HD
authored andcommitted
Ensure crosshair gets real monotonic()
1 parent 050b7fc commit 75b290f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hypothesis-python/tests/conftest.py

+7
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ def warns_or_raises(request):
9494
return pytest.warns
9595

9696

97+
# crosshair needs actual time for its path timeouts; load it before patching
98+
try:
99+
import hypothesis_crosshair_provider.crosshair_provider # noqa: F401
100+
except ImportError:
101+
pass
102+
103+
97104
@pytest.fixture(scope="function", autouse=True)
98105
def _consistently_increment_time(monkeypatch):
99106
"""Rather than rely on real system time we monkey patch time.time so that

0 commit comments

Comments
 (0)