From 94e62dfc5079d1caad31ebb070f6a43317f0023e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 16 May 2018 07:27:54 -0300 Subject: [PATCH 1/2] Increase hypothesis deadline The value is pretty close to the new default that will come out in future hypothesis versions, which is generating a deprecation error on CI. Using a loose deadline because CI boxes are not reliable in how much CPU power they have available --- testing/python/metafunc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index 1de38e3fb17..bd38c670b29 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -188,6 +188,7 @@ class A(object): assert metafunc._calls[3].id == "x1-b" @hypothesis.given(strategies.text() | strategies.binary()) + @hypothesis.settings(deadline=400.0) # very close to std deadline and CI boxes are not reliable in CPU power def test_idval_hypothesis(self, value): from _pytest.python import _idval escaped = _idval(value, 'a', 6, None) From f5361a302c58880a145fd0ca2cc7c44c469e6a2a Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 16 May 2018 07:32:06 -0300 Subject: [PATCH 2/2] Use a more recent hypothesis version on CI --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index f4f5c3bf288..98194526502 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ envlist = commands = pytest --lsof -ra {posargs:testing} passenv = USER USERNAME deps = - hypothesis>=3.5.2 + hypothesis>=3.56 nose mock requests @@ -53,7 +53,7 @@ deps = pytest-xdist>=1.13 mock nose - hypothesis>=3.5.2 + hypothesis>=3.56 changedir=testing commands = pytest -n8 -ra {posargs:.} @@ -78,7 +78,7 @@ commands = {[testenv:py27-pexpect]commands} [testenv:py27-nobyte] deps = pytest-xdist>=1.13 - hypothesis>=3.5.2 + hypothesis>=3.56 distribute = true changedir=testing setenv =