From c4183bc34d7187d35f4b845df5610a89a2142f51 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 3 Aug 2015 23:28:51 +0200 Subject: [PATCH] tox: Update hypothesis/hypothesis-pytest to 1.10.0 This is just a bugfix and performance release, but it changes some semi-public APIs, hence the minor version bump. - Significant performance improvements for strategies which are one_of() many branches. In particular this included recursive() strategies. This should take the case where you use one recursive() strategy as the base strategy of another from unusably slow (tens of seconds per generated example) to reasonably fast. - Better handling of just() and sampled_from() for values which have an incorrect __repr__ implementation that returns non-ASCII unicode on Python 2. - Better performance for flatmap from changing the internal morpher API to be significantly less general purpose. - Introduce a new semi-public BuildContext/cleanup API. This allows strategies to register cleanup activities that should run once the example is complete. Note that this will interact somewhat weirdly with find. - Better simplification behaviour for streaming strategies. - Don't error on lambdas which use destructuring arguments in Python 2. - Add some better reprs for a few strategies that were missing good ones. - The Random instances provided by randoms() are now copyable. - Slightly more debugging information about simplify when using a debug verbosity level. - Support using given for functions with varargs, but not passing arguments to it as positional. --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 3895a4aab..a05f0859e 100644 --- a/tox.ini +++ b/tox.ini @@ -27,8 +27,8 @@ deps = pytest-qt==1.5.1 pytest-mock==0.7.0 pytest-html==1.3.2 - hypothesis==1.9.0 - hypothesis-pytest==0.14.0 + hypothesis==1.10.0 + hypothesis-pytest==0.15.0 commands = {envpython} scripts/link_pyqt.py --tox {envdir} {envpython} -m py.test --strict -rfEsw {posargs:tests} @@ -82,7 +82,7 @@ deps = astroid==1.3.8 beautifulsoup4==4.4.0 pylint==1.4.4 - hypothesis==1.9.0 + hypothesis==1.10.0 logilab-common==1.0.2 six==1.9.0 commands =