| 1 |
pytest-2.6.1: fixes and new xfail feature |
| 2 |
=========================================================================== |
| 3 |
|
| 4 |
pytest is a mature Python testing tool with more than 1100 tests |
| 5 |
against itself, passing on many different interpreters and platforms. |
| 6 |
The 2.6.1 release is drop-in compatible to 2.5.2 and actually fixes some |
| 7 |
regressions introduced with 2.6.0. It also brings a little feature |
| 8 |
to the xfail marker which now recognizes expected exceptions, |
| 9 |
see the CHANGELOG below. |
| 10 |
|
| 11 |
See docs at: |
| 12 |
|
| 13 |
http://pytest.org |
| 14 |
|
| 15 |
As usual, you can upgrade from pypi via:: |
| 16 |
|
| 17 |
pip install -U pytest |
| 18 |
|
| 19 |
Thanks to all who contributed, among them: |
| 20 |
|
| 21 |
Floris Bruynooghe |
| 22 |
Bruno Oliveira |
| 23 |
Nicolas Delaby |
| 24 |
|
| 25 |
have fun, |
| 26 |
holger krekel |
| 27 |
|
| 28 |
Changes 2.6.1 |
| 29 |
================= |
| 30 |
|
| 31 |
- No longer show line numbers in the --verbose output, the output is now |
| 32 |
purely the nodeid. The line number is still shown in failure reports. |
| 33 |
Thanks Floris Bruynooghe. |
| 34 |
|
| 35 |
- fix issue437 where assertion rewriting could cause pytest-xdist worker nodes |
| 36 |
to collect different tests. Thanks Bruno Oliveira. |
| 37 |
|
| 38 |
- fix issue555: add "errors" attribute to capture-streams to satisfy |
| 39 |
some distutils and possibly other code accessing sys.stdout.errors. |
| 40 |
|
| 41 |
- fix issue547 capsys/capfd also work when output capturing ("-s") is disabled. |
| 42 |
|
| 43 |
- address issue170: allow pytest.mark.xfail(...) to specify expected exceptions via |
| 44 |
an optional "raises=EXC" argument where EXC can be a single exception |
| 45 |
or a tuple of exception classes. Thanks David Mohr for the complete |
| 46 |
PR. |
| 47 |
|
| 48 |
- fix integration of pytest with unittest.mock.patch decorator when |
| 49 |
it uses the "new" argument. Thanks Nicolas Delaby for test and PR. |
| 50 |
|
| 51 |
- fix issue with detecting conftest files if the arguments contain |
| 52 |
"::" node id specifications (copy pasted from "-v" output) |
| 53 |
|
| 54 |
- fix issue544 by only removing "@NUM" at the end of "::" separated parts |
| 55 |
and if the part has a ".py" extension |
| 56 |
|
| 57 |
- don't use py.std import helper, rather import things directly. |
| 58 |
Thanks Bruno Oliveira. |