This is a small refactoring release that removes a now-unused parameter to an internal API. It shouldn’t have any user visible effect.

3.23.1:
Hypothesis no longer propagates the dynamic scope of settings into strategy definitions.

This release is a small change to something that was never part of the public API and you will almost certainly not notice any effect unless you’re doing something surprising, but for example the following code will now give a different answer in some circumstances:

import hypothesis.strategies as st
from hypothesis import settings

CURRENT_SETTINGS = st.builds(lambda: settings.default)
(We don’t actually encourage you writing code like this)

Previously this would have generated the settings that were in effect at the point of definition of CURRENT_SETTINGS. Now it will generate the settings that are used for the current test.

It is very unlikely to be significant enough to be visible, but you may also notice a small performance improvement.
This commit is contained in:
adam 2017-09-04 17:28:45 +00:00
parent f3604d7e17
commit d38f07dbfd
2 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.30 2017/08/27 12:16:06 adam Exp $
# $NetBSD: Makefile,v 1.31 2017/09/04 17:28:45 adam Exp $
DISTNAME= hypothesis-3.22.0
DISTNAME= hypothesis-3.23.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PYPI:=h/hypothesis/}

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.27 2017/08/27 12:16:07 adam Exp $
$NetBSD: distinfo,v 1.28 2017/09/04 17:28:45 adam Exp $
SHA1 (hypothesis-3.22.0.tar.gz) = 7c9e78e906604630262dbba050d508de4e56a345
RMD160 (hypothesis-3.22.0.tar.gz) = 4193b282e3caf9338d45f89070744d357cbb2da5
SHA512 (hypothesis-3.22.0.tar.gz) = a530fc14e826c6681b1cffb34f0f7be5705915eb8659fbb6587507876c585ce9e939a925e0c08d5725852d730db50ade9da69f6b16cee9b26cd4547a28bbcdca
Size (hypothesis-3.22.0.tar.gz) = 106792 bytes
SHA1 (hypothesis-3.23.2.tar.gz) = 5876a8eb96516a967d7992d9af4d0f1b5564a378
RMD160 (hypothesis-3.23.2.tar.gz) = 2d2264051ce5178b92197861e5fb9a45656f7929
SHA512 (hypothesis-3.23.2.tar.gz) = da40e782eb8d794ce040c9d6cb387ec1ee8b80b9269744a019e8251cdc43f11c8ce6a9226d17cd3a528ad5940ed4a42313368c1a9906bacd907e1c828f9e9ac0
Size (hypothesis-3.23.2.tar.gz) = 107726 bytes