summaryrefslogtreecommitdiff
path: root/debian/patches/healthcheck-all.patch
blob: b49296eec554358d5375ad11d3f1262015eb5bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: 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
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pyranges.orig/tests/test_unary.py
+++ pyranges/tests/test_unary.py
@@ -289,7 +289,7 @@
 @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):