-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Pytest 2.8.3 #1181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pytest 2.8.3 #1181
Changes from all commits
3dc57d9
6096cae
063f90f
2b5c46b
d045055
e4a000b
af46ffe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ Note: this assumes you have already registered on pypi. | |
2. Check and finalize CHANGELOG | ||
|
||
3. Write doc/en/announce/release-VERSION.txt and include | ||
it in doc/en/announce/index.txt | ||
it in doc/en/announce/index.txt:: | ||
|
||
git log 2.8.2..HEAD --format='%aN' | sort -u # lists the names of authors involved | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, you were faster - thanks! |
||
|
||
4. Use devpi for uploading a release tarball to a staging area:: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# | ||
__version__ = '2.8.3.dev1' | ||
__version__ = '2.8.4.dev1' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
pytest-2.8.3: bug fixes | ||
======================= | ||
|
||
pytest is a mature Python testing tool with more than a 1100 tests | ||
against itself, passing on many different interpreters and platforms. | ||
This release is supposed to be drop-in compatible to 2.8.2. | ||
|
||
See below for the changes and see docs at: | ||
|
||
http://pytest.org | ||
|
||
As usual, you can upgrade from pypi via:: | ||
|
||
pip install -U pytest | ||
|
||
Thanks to all who contributed to this release, among them: | ||
|
||
Bruno Oliveira | ||
Florian Bruhin | ||
Gabe Hollombe | ||
Gabriel Reis | ||
Hartmut Goebel | ||
John Vandenberg | ||
Lee Kamentsky | ||
Michael Birtwell | ||
Raphael Pierzina | ||
Ronny Pfannschmidt | ||
William Martin Stewart | ||
|
||
Happy testing, | ||
The py.test Development Team | ||
|
||
|
||
2.8.3 (compared to 2.8.2) | ||
----------------------------- | ||
|
||
- fix #1169: add __name__ attribute to testcases in TestCaseFunction to | ||
support the @unittest.skip decorator on functions and methods. | ||
Thanks Lee Kamentsky for the PR. | ||
|
||
- fix #1035: collecting tests if test module level obj has __getattr__(). | ||
Thanks Suor for the report and Bruno Oliveira / Tom Viner for the PR. | ||
|
||
- fix #331: don't collect tests if their failure cannot be reported correctly | ||
e.g. they are a callable instance of a class. | ||
|
||
- fix #1133: fixed internal error when filtering tracebacks where one entry | ||
belongs to a file which is no longer available. | ||
Thanks Bruno Oliveira for the PR. | ||
|
||
- enhancement made to highlight in red the name of the failing tests so | ||
they stand out in the output. | ||
Thanks Gabriel Reis for the PR. | ||
|
||
- add more talks to the documentation | ||
- extend documentation on the --ignore cli option | ||
- use pytest-runner for setuptools integration | ||
- minor fixes for interaction with OS X El Capitan system integrity protection (thanks Florian) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ objects, they are still using the default pytest representation:: | |
|
||
$ py.test test_time.py --collect-only | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 6 items | ||
<Module 'test_time.py'> | ||
|
@@ -181,7 +181,7 @@ this is a fully self-contained example which you can run with:: | |
|
||
$ py.test test_scenarios.py | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 4 items | ||
|
||
|
@@ -194,7 +194,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia | |
|
||
$ py.test --collect-only test_scenarios.py | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 4 items | ||
<Module 'test_scenarios.py'> | ||
|
@@ -259,7 +259,7 @@ Let's first see how it looks like at collection time:: | |
|
||
$ py.test test_backends.py --collect-only | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 2 items | ||
<Module 'test_backends.py'> | ||
|
@@ -320,7 +320,7 @@ The result of this test will be successful:: | |
|
||
$ py.test test_indirect_list.py --collect-only | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 1 items | ||
<Module 'test_indirect_list.py'> | ||
|
@@ -397,8 +397,11 @@ is to be run with different sets of arguments for its three arguments: | |
Running it results in some skips if we don't have all the python interpreters installed and otherwise runs all combinations (5 interpreters times 5 interpreters times 3 objects to serialize/deserialize):: | ||
|
||
. $ py.test -rs -q multipython.py | ||
........................... | ||
27 passed in 0.12 seconds | ||
ssssssssssss...ssssssssssss | ||
======= short test summary info ======== | ||
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:22: 'python3.3' not found | ||
SKIP [12] $REGENDOC_TMPDIR/CWD/multipython.py:22: 'python2.6' not found | ||
3 passed, 24 skipped in 0.12 seconds | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like you have less python interpreters installed than @hpk42 has 😆 (but no problem with that, IMHO the example shows better what's described in the text with some skips) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new system effect :) |
||
|
||
Indirect parametrization of optional implementations/imports | ||
-------------------------------------------------------------------- | ||
|
@@ -445,7 +448,7 @@ If you run this with reporting for skips enabled:: | |
|
||
$ py.test -rs test_module.py | ||
======= test session starts ======== | ||
platform linux -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 | ||
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | ||
rootdir: $REGENDOC_TMPDIR, inifile: | ||
collected 2 items | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is worth a changelog entry (and the next one too), but your decision 😉