Debian Codegraph @

website/content/2016-09-23-hypothesis-3.5.0-release.md

raw symbols SCIP
1 ---
2 tags: news, python, non-technical
3 date: 2016-09-23 00:00
4 title: 3.5.0 and 3.5.1 Releases of Hypothesis for Python
5 author: drmaciver
6 ---
7
8 This is a combined release announcement for two releases. 3.5.0
9 was released yesterday, and 3.5.1 has been released today after
10 some early bug reports in 3.5.0
11
12 ## Changes
13
14 ### 3.5.0 - 2016-09-22
15
16 This is a feature release.
17
18 * fractions() and decimals() strategies now support min_value and max_value
19 parameters. Thanks go to Anne Mulhern for the development of this feature.
20 * The Hypothesis pytest plugin now supports a --hypothesis-show-statistics parameter
21 that gives detailed statistics about the tests that were run. Huge thanks to
22 [Jean-Louis Fuchs](https://github.com/ganwell) and [Adfinis-SyGroup](https://www.adfinis-sygroup.ch/)
23 for funding the development of this feature.
24 * There is a new event() function that can be used to add custom statistics.
25
26 Additionally there have been some minor bug fixes:
27
28 * In some cases Hypothesis should produce fewer duplicate examples (this will mostly
29 only affect cases with a single parameter).
30 * py.test command line parameters are now under an option group for Hypothesis (thanks
31 to David Keijser for fixing this)
32 * Hypothesis would previously error if you used function annotations on your tests under
33 Python 3.4.
34 * The repr of many strategies using lambdas has been improved to include the lambda body
35 (this was previously supported in many but not all cases).
36
37
38 ### 3.5.1 - 2016-09-23
39
40 This is a bug fix release.
41
42 * Hypothesis now runs cleanly in -B and -BB modes, avoiding mixing bytes and unicode.
43 * unittest.TestCase tests would not have shown up in the new statistics mode. Now they
44 do.
45 * Similarly, stateful tests would not have shown up in statistics and now they do.
46 * Statistics now print with pytest node IDs (the names you'd get in pytest verbose mode).
47
48
49 ## Notes
50
51 Aside from the above changes, there are a couple big things behind the scenes of this
52 release that make it a big deal.
53
54 The first is that the flagship chunk of work, statistics, is a long-standing want to
55 have that has never quite been prioritised. By funding it, Jean-Louis and Adfinis-SyGroup
56 successfully bumped it up to the top of the priority list, making it the first funded
57 feature in Hypothesis for Python!
58
59 Another less significant but still important is that this release marks the first real
60 break with an unofficial Hypothesis for Python policy of not having any dependencies
61 other than the standard library and backports. This release adds a dependency on the
62 uncompyle6 package. This may seem like an odd choice, but it was invaluable for fixing
63 the repr behaviour, which in turn was really needed for providing good statistics
64 for filter and recursive strategies.