Skip to content

Commit

Permalink
Merge pull request #3406 from jameslamb/example-stacklevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD authored Jul 19, 2022
2 parents 6a53d54 + d4c4ceb commit 14ca700
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ their individual contributions.
* `Ivan Tham <https://github.com/pickfire>`_
* `Jack Massey <https://github.com/massey101>`_
* `Jakub Nabaglo <https://github.com/nbgl>`_ (j@nab.gl)
* `James Lamb <https://github.com/jameslamb>`_
* `Jenny Rouleau <https://github.com/jennyrou>`_
* `Jeremy Thurgood <https://github.com/jerith>`_
* `J.J. Green <http://soliton.vm.bytemark.co.uk/pub/jjg/>`_
Expand Down
6 changes: 6 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RELEASE_TYPE: patch

This patch ensures that the warning for non-interactive ``.example()``
points to your code instead of Hypothesis internals (:issue:`3403`).

Thanks to @jameslamb for this fix.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def example(self) -> Ex:
"it performs better, saves and replays failures to avoid flakiness, "
"and reports minimal examples. (strategy: %r)" % (self,),
NonInteractiveExampleWarning,
stacklevel=2,
)

context = _current_build_context.value
Expand Down

0 comments on commit 14ca700

Please sign in to comment.