Skip to content

Hypothesis version 6.170.24

Latest

Choose a tag to compare

@Zac-HD Zac-HD released this 29 Nov 02:40

Quitting the debugger ("q" in "pdb", which raises "bdb.BdbQuit", or
"pytest.exit()", which pytest's own debugger wrapper uses) inside a
test decorated with "@given" now stops the run immediately, in the
same way as "KeyboardInterrupt".

Previously these exceptions were treated as ordinary test failures, so
Hypothesis would go on to shrink the "failure", hitting any
"breakpoint()" in the test again on every shrink attempt and making it
very hard to get out of the debugger.

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