Skip to content

Commit

Permalink
Merge pull request #3480 from nicoddemus/deprecated-deadlne-hypothesis
Browse files Browse the repository at this point in the history
Attempt to fix CI problems related to Hypothesis
  • Loading branch information
RonnyPfannschmidt authored May 17, 2018
2 parents 11fb384 + f5361a3 commit 45faaec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions testing/python/metafunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:.}
Expand All @@ -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 =
Expand Down

0 comments on commit 45faaec

Please sign in to comment.