Skip to content

Commit

Permalink
Merge pull request #4230 from tybug/cannot-proceed-freeze
Browse files Browse the repository at this point in the history
Freeze in `BackendCannotProceed`
  • Loading branch information
Zac-HD authored Jan 8, 2025
2 parents f189e87 + 55a8f47 commit 8d50dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

Fixes a bug caused by :ref:`alternative backends <alternative-backends>` raising ``hypothesis.errors.BackendCannotProceed`` in certain cases.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ def test_function(self, data: ConjectureData) -> None:
self._switch_to_hypothesis_provider = True
# skip the post-test-case tracking; we're pretending this never happened
interrupted = True
data.freeze()
return
except BaseException:
self.save_buffer(data.buffer)
Expand Down

0 comments on commit 8d50dbf

Please sign in to comment.