pytest-trio icon indicating copy to clipboard operation
pytest-trio copied to clipboard

Avoid importing Hypothesis, for reduced startup time

Open Zac-HD opened this issue 1 year ago • 0 comments

We currently have a chunk of code (below) to ensure that Hypothesis can make the Trio scheduler deterministic. https://github.com/python-trio/trio/issues/2981 proposes moving that into Trio itself; after which we can delete it here and celebrate (slightly) faster import times for anyone who doesn't use Hypothesis.

https://github.com/python-trio/pytest-trio/blob/e930e6f6e8fb4d2a336dfa1313fb95c91c2c1725/pytest_trio/plugin.py#L22-L34

Zac-HD avatar Mar 30 '24 21:03 Zac-HD