Skip to content

Commit 90ad3e2

Browse files
committed
exit if replayed interesting backends are flaky
1 parent c46da15 commit 90ad3e2

File tree

1 file changed

+5
-0
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+5
-0
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/engine.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,11 @@ def test_function(self, data: ConjectureData) -> None:
508508
# to a buffer
509509
data = ConjectureData.for_ir_tree(data.examples.ir_tree_nodes)
510510
self.__stoppable_test_function(data)
511+
data.freeze()
512+
# should we raise Flaky here instead?
513+
if data.status != Status.INTERESTING:
514+
self.exit_with(ExitReason.flaky)
515+
511516
self._cache(data)
512517

513518
key = data.interesting_origin

0 commit comments

Comments
 (0)