Debian Codegraph @

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

raw
1 py.test 2.1.0: perfected assertions and bug fixes
2 ===========================================================================
3
4 Welcome to the release of pytest-2.1, a mature testing tool for Python,
5 supporting CPython 2.4-3.2, Jython and latest PyPy interpreters. See
6 the improved extensive docs (now also as PDF!) with tested examples here:
7
8 http://pytest.org/
9
10 The single biggest news about this release are **perfected assertions**
11 courtesy of Benjamin Peterson. You can now safely use ``assert``
12 statements in test modules without having to worry about side effects
13 or python optimization ("-OO") options. This is achieved by rewriting
14 assert statements in test modules upon import, using a PEP302 hook.
15 See https://docs.pytest.org/en/stable/how-to/assert.html for
16 detailed information. The work has been partly sponsored by my company,
17 merlinux GmbH.
18
19 For further details on bug fixes and smaller enhancements see below.
20
21 If you want to install or upgrade pytest, just type one of::
22
23 pip install -U pytest # or
24 easy_install -U pytest
25
26 best,
27 holger krekel / https://merlinux.eu/
28
29 Changes between 2.0.3 and 2.1.0
30 ----------------------------------------------
31
32 - fix issue53 call nosestyle setup functions with correct ordering
33 - fix issue58 and issue59: new assertion code fixes
34 - merge Benjamin's assertionrewrite branch: now assertions
35 for test modules on python 2.6 and above are done by rewriting
36 the AST and saving the pyc file before the test module is imported.
37 see doc/assert.txt for more info.
38 - fix issue43: improve doctests with better traceback reporting on
39 unexpected exceptions
40 - fix issue47: timing output in junitxml for test cases is now correct
41 - fix issue48: typo in MarkInfo repr leading to exception
42 - fix issue49: avoid confusing error when initialization partially fails
43 - fix issue44: env/username expansion for junitxml file path
44 - show releaselevel information in test runs for pypy
45 - reworked doc pages for better navigation and PDF generation
46 - report KeyboardInterrupt even if interrupted during session startup
47 - fix issue 35 - provide PDF doc version and download link from index page