From ba655a1941d927b5a8339a449cbffe8875066b4f Mon Sep 17 00:00:00 2001 From: mattsb42-aws Date: Tue, 15 Jan 2019 13:55:22 -0800 Subject: [PATCH] remove use of deprecated hypothesis features * timeout: https://hypothesis.readthedocs.io/en/master/changes.html#v3-16-0 * max_iterations: https://hypothesis.readthedocs.io/en/master/changes.html#v3-56-0 --- test/functional/hypothesis_strategies.py | 3 +-- test/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/functional/hypothesis_strategies.py b/test/functional/hypothesis_strategies.py index 8e230375..3550a411 100644 --- a/test/functional/hypothesis_strategies.py +++ b/test/functional/hypothesis_strategies.py @@ -25,10 +25,9 @@ hypothesis.HealthCheck.hung_test, hypothesis.HealthCheck.large_base_example, ), - timeout=hypothesis.unlimited, deadline=None, ) -VERY_SLOW_SETTINGS = hypothesis.settings(SLOW_SETTINGS, max_examples=1000, max_iterations=1500) +VERY_SLOW_SETTINGS = hypothesis.settings(SLOW_SETTINGS, max_examples=1000) MAX_ITEM_BYTES = 400 * 1024 * 1024 # _MIN_NUMBER = Decimal('1E-128') # The DDB min is 1E-130, but DYNAMODB_CONTEXT Emin is -128 diff --git a/test/requirements.txt b/test/requirements.txt index 0ae8bcb2..1f45e1d2 100644 --- a/test/requirements.txt +++ b/test/requirements.txt @@ -1,4 +1,4 @@ -hypothesis==3.63.0 +hypothesis>=3.63.0 mock # temporarily pinning moto pending resolution of # https://github.com/spulec/moto/issues/1924