From 3f8f201457ba3a5c8ad3cae69314aa1981ea8cd3 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 27 Jan 2024 23:19:41 +0000 Subject: [PATCH] Remove use of deprecated API Previously the call to `.all()` emitted: > HypothesisDeprecationWarning: `Healthcheck.all()` is deprecated; > use `list(HealthCheck)` instead. Using `list(HealthCheck)` works, though this shorter spelling seems to work too. --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index a6f491c..4b8336e 100755 --- a/test.py +++ b/test.py @@ -1400,7 +1400,7 @@ def test_small_list(self, cls, collection): bm = cls(collection) self.assertEqual(bm, eval(repr(bm))) - @settings(suppress_health_check=HealthCheck.all()) + @settings(suppress_health_check=HealthCheck) @given(bitmap_cls, large_list_of_uin32) def test_large_list(self, cls, collection): # test that for a large bitmap the both the start and the end of the bitmap get printed