There is a newer version of the record available.

Published February 29, 2020 | Version hypothesis-python-5.6.0
Software Open

HypothesisWorks/hypothesis: Hypothesis for Python - version 5.6.0

Description

This release adds an explicit warning for tests that are both decorated with "@given(...)" and request a function-scoped pytest fixture, because such fixtures are only executed once for all Hypothesis test cases and that often causes trouble (issue #377).

It's very difficult to fix this on the pytest side, so since 2015 our advice has been "just don't use function-scoped fixtures with Hypothesis". Now we detect and warn about the issue at runtime!

The canonical version of these notes (with links) is on readthedocs.

Files

HypothesisWorks/hypothesis-hypothesis-python-5.6.0.zip

Files (9.3 MB)

Additional details