Skip to content

Commit b14ebf4

Browse files
committed
Merge branch '1.10.x'
2 parents af69cac + e7496d4 commit b14ebf4

File tree

152 files changed

+1407
-1446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+1407
-1446
lines changed

docs/changes.rst

+27
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,33 @@ Hypothesis APIs come in three flavours:
2121
You should generally assume that an API is internal unless you have specific
2222
information to the contrary.
2323

24+
-----------------------------------------------------------------------
25+
`1.10.3 <https://hypothesis.readthedocs.org/en/v1.10.2/>`_ - 2015-08-19
26+
-----------------------------------------------------------------------
27+
28+
Another small bug fix release.
29+
30+
* lists(elements, unique_by=some_function, min_size=n) would have raised a
31+
ValidationError if n > Settings.default.average_list_length because it would
32+
have wanted to use an average list length shorter than the minimum size of
33+
the list, which is impossible. Now it instead defaults to twice the minimum
34+
size in these circumstances.
35+
* basic() strategy would have only ever produced at most ten distinct values
36+
per run of the test (which is bad if you e.g. have it inside a list). This
37+
was obviously silly. It will now produce a much better distribution of data,
38+
both duplicated and non duplicated.
39+
40+
41+
-----------------------------------------------------------------------
42+
`1.10.2 <https://hypothesis.readthedocs.org/en/v1.10.2/>`_ - 2015-08-19
43+
-----------------------------------------------------------------------
44+
45+
This is a small bug fix release:
46+
47+
* star imports from hypothesis should now work correctly.
48+
* example quality for examples using flatmap will be better, as the way it had
49+
previously been implemented was causing problems where Hypothesis was
50+
erroneously labelling some examples as being duplicates.
2451

2552
-----------------------------------------------------------------------
2653
`1.10.0 <https://hypothesis.readthedocs.org/en/v1.10.0/>`_ - 2015-08-04

hypothesis-extra/hypothesis-pytest/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run_tests(self):
4343

4444
setup(
4545
name='hypothesis-pytest',
46-
version='0.16.0',
46+
version='0.17.0',
4747
author='David R. MacIver',
4848
author_email='david@drmaciver.com',
4949
packages=find_packages(SOURCE),

hypothesis-extra/hypothesis-pytest/tests/test_mark.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from __future__ import division, print_function, absolute_import, \
2-
unicode_literals
1+
from __future__ import division, print_function, absolute_import
32

43
# coding=utf-8
54

hypothesis-extra/hypothesis-pytest/tests/test_reporting.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from __future__ import division, print_function, absolute_import, \
2-
unicode_literals
1+
from __future__ import division, print_function, absolute_import
32

43
# coding=utf-8
54

scripts/basic-test.sh

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ if [ "$DARWIN" != true ]; then
2727
done
2828
fi
2929

30+
pushd hypothesis-extra/hypothesis-pytest
31+
python setup.py install
32+
python -m pytest tests/
33+
popd
34+
3035
pip install .[datetime]
3136
python -m pytest tests/datetime/
3237
pip uninstall -y pytz

scripts/lint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export LC_ALL=en_GB.UTF-8
66

77
python scripts/enforce_header.py
88
isort -p hypothesis -ls -m 2 -w 75 \
9-
-a "from __future__ import absolute_import, print_function, unicode_literals, division" \
9+
-a "from __future__ import absolute_import, print_function, division" \
1010
-rc src tests examples hypothesis-extra/*/{src,tests}
1111
find hypothesis-extra/*/{src,tests} src tests examples -name '*.py' | xargs pyformat -i
1212
git diff --exit-code
13-
flake8 src tests --exclude=compat.py,test_reflection.py,tests/py2 --ignore=E731,E721
13+
flake8 src tests --exclude=compat.py,test_reflection.py,test_imports.py,tests/py2 --ignore=E731,E721

src/hypothesis/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
2323
"""
2424

25-
from __future__ import division, print_function, absolute_import, \
26-
unicode_literals
2725

2826
from hypothesis.searchstrategy import strategy
2927
from hypothesis.settings import Settings, Verbosity

src/hypothesis/control.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
# END HEADER
1616

17-
from __future__ import division, print_function, absolute_import, \
18-
unicode_literals
17+
from __future__ import division, print_function, absolute_import
1918

2019
import traceback
2120

@@ -77,5 +76,5 @@ def cleanup(teardown):
7776
context = _current_build_context.value
7877
if context is None:
7978
raise InvalidArgument(
80-
'Cannot register cleanup outside of build context')
79+
u'Cannot register cleanup outside of build context')
8180
context.tasks.append(teardown)

0 commit comments

Comments
 (0)