diff options
author | Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org> | 2024-02-23 15:39:01 +0100 |
---|---|---|
committer | Étienne Mollier <emollier@debian.org> | 2024-02-23 15:39:01 +0100 |
commit | f2f6faf59694af05ef9cc4b4f1fe91926425b5bb (patch) | |
tree | 26e69eacdfd9d1d770333638043b3f3d3a370f9d | |
parent | 09d6ff39e8db092d8f47a152345adf0e05de1cd4 (diff) |
fix deprecated HealthCheck.all() decorator parameter.
The HealthCheck.all() method has been deprecated in favor of specifying in a
list which checks to ignore in a subsequent test function. The error message
suggests use of HealthCheck.return_value. Other options are documented on
Python hypothesis module documentation[1]. It is worth noting the attribute
return_value itself is marked as deprecated, so we might as well just buy us
some time until a possibly more appropriate fix.
[1]: https://hypothesis.readthedocs.io/en/latest/settings.html#health-checks
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042046
Forwarded: no
Last-Update: 2023-08-23
Gbp-Pq: Name healthcheck-all.patch
-rw-r--r-- | tests/test_unary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_unary.py b/tests/test_unary.py index 06548c2..8d922cd 100644 --- a/tests/test_unary.py +++ b/tests/test_unary.py @@ -289,7 +289,7 @@ chipseq = pr.data.chipseq() @settings( max_examples=max_examples, deadline=deadline, - suppress_health_check=HealthCheck.all()) + suppress_health_check=[HealthCheck.return_value]) @given(selector=selector()) # pylint: disable=no-value-for-parameter def test_getitem(selector): |