10000 Explain mode requires shrinking · HypothesisWorks/hypothesis@f6fc69f · GitHub
[go: up one dir, main page]

Skip to content

Commit f6fc69f

Browse files
committed
Explain mode requires shrinking
With shrinking disabled you get *a* result, but the "always observed for failing examples" part is pretty vacuous.
1 parent c1d3ccf commit f6fc69f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RELEASE_TYPE: minor
2+
3+
The :ref:`explain phase <phases>` now requires shrinking to be enabled,
4+
and will be automatically skipped for deadline-exceeded errors.

hypothesis-python/src/hypothesis/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ def _execute_once_for_engine(self, data):
670670
if (
671671
self.failed_normally
672672
and not self.failed_due_to_deadline
673+
and Phase.shrink in self.settings.phases
673674
and Phase.explain in self.settings.phases
674675
and sys.gettrace() is None
675676
and not PYPY

0 commit comments

Comments
 (0)
0