summaryrefslogtreecommitdiff
path: root/debian/patches/healthcheck-all.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/healthcheck-all.patch')
-rw-r--r--debian/patches/healthcheck-all.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/healthcheck-all.patch b/debian/patches/healthcheck-all.patch
new file mode 100644
index 0000000..b49296e
--- /dev/null
+++ b/debian/patches/healthcheck-all.patch
@@ -0,0 +1,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):
+