Debian Codegraph @

testing/web-platform/tests/tools/third_party/pytest/doc/en/announce/release-2.0.1.rst

raw
1 py.test 2.0.1: bug fixes
2 ===========================================================================
3
4 Welcome to pytest-2.0.1, a maintenance and bug fix release of pytest,
5 a mature testing tool for Python, supporting CPython 2.4-3.2, Jython
6 and latest PyPy interpreters. See extensive docs with tested examples here:
7
8 http://pytest.org/
9
10 If you want to install or upgrade pytest, just type one of::
11
12 pip install -U pytest # or
13 easy_install -U pytest
14
15 Many thanks to all issue reporters and people asking questions or
16 complaining. Particular thanks to Floris Bruynooghe and Ronny Pfannschmidt
17 for their great coding contributions and many others for feedback and help.
18
19 best,
20 holger krekel
21
22 Changes between 2.0.0 and 2.0.1
23 ----------------------------------------------
24
25 - refine and unify initial capturing so that it works nicely
26 even if the logging module is used on an early-loaded conftest.py
27 file or plugin.
28 - fix issue12 - show plugin versions with "--version" and
29 "--traceconfig" and also document how to add extra information
30 to reporting test header
31 - fix issue17 (import-* reporting issue on python3) by
32 requiring py>1.4.0 (1.4.1 is going to include it)
33 - fix issue10 (numpy arrays truth checking) by refining
34 assertion interpretation in py lib
35 - fix issue15: make nose compatibility tests compatible
36 with python3 (now that nose-1.0 supports python3)
37 - remove somewhat surprising "same-conftest" detection because
38 it ignores conftest.py when they appear in several subdirs.
39 - improve assertions ("not in"), thanks Floris Bruynooghe
40 - improve behaviour/warnings when running on top of "python -OO"
41 (assertions and docstrings are turned off, leading to potential
42 false positives)
43 - introduce a pytest_cmdline_processargs(args) hook
44 to allow dynamic computation of command line arguments.
45 This fixes a regression because py.test prior to 2.0
46 allowed to set command line options from conftest.py
47 files which so far pytest-2.0 only allowed from ini-files now.
48 - fix issue7: assert failures in doctest modules.
49 unexpected failures in doctests will not generally
50 show nicer, i.e. within the doctest failing context.
51 - fix issue9: setup/teardown functions for an xfail-marked
52 test will report as xfail if they fail but report as normally
53 passing (not xpassing) if they succeed. This only is true
54 for "direct" setup/teardown invocations because teardown_class/
55 teardown_module cannot closely relate to a single test.
56 - fix issue14: no logging errors at process exit
57 - refinements to "collecting" output on non-ttys
58 - refine internal plugin registration and --traceconfig output
59 - introduce a mechanism to prevent/unregister plugins from the
60 command line, see http://pytest.org/en/stable/how-to/plugins.html#cmdunregister
61 - activate resultlog plugin by default
62 - fix regression wrt yielded tests which due to the
63 collection-before-running semantics were not
64 setup as with pytest 1.3.4. Note, however, that
65 the recommended and much cleaner way to do test
66 parametrization remains the "pytest_generate_tests"
67 mechanism, see the docs.