Preparing release version 3.1.1

This commit is contained in:
Bruno Oliveira 2017-05-30 17:19:34 -04:00
parent 0540d72c87
commit 2fd7626046
9 changed files with 65 additions and 25 deletions

View File

@ -6,9 +6,33 @@
https://pip.pypa.io/en/latest/development/#adding-a-news-entry https://pip.pypa.io/en/latest/development/#adding-a-news-entry
we named the news folder changelog we named the news folder changelog
.. towncrier release notes start .. towncrier release notes start
Pytest 3.1.1 (2017-05-30)
=========================
Bug Fixes
---------
- pytest warning capture no longer overrides existing warning filters. The
previous behaviour would override all filters and caused regressions in test
suites which configure warning filters to match their needs. Note that as a
side-effect of this is that ``DeprecationWarning`` and
``PendingDeprecationWarning`` are no longer shown by default. (#2430)
- Fix issue with non-ascii contents in doctest text files. (#2434)
- Fix encoding errors for unicode warnings in Python 2. (#2436)
- ``pytest.deprecated_call`` now captures ``PendingDeprecationWarning`` in
context manager form. (#2441)
Improved Documentation
----------------------
- Addition of towncrier for changelog management. (#2390)
3.1.0 (2017-05-22) 3.1.0 (2017-05-22)
================== ==================

View File

@ -1 +0,0 @@
Addition of towncrier for changelog management.

View File

@ -1,4 +0,0 @@
pytest warning capture no longer overrides existing warning filters. The previous
behaviour would override all filters and caused regressions in test suites which configure warning
filters to match their needs. Note that as a side-effect of this is that ``DeprecationWarning``
and ``PendingDeprecationWarning`` are no longer shown by default.

View File

@ -1 +0,0 @@
Fix issue with non-ascii contents in doctest text files.

View File

@ -1 +0,0 @@
Fix encoding errors for unicode warnings in Python 2.

View File

@ -1 +0,0 @@
``pytest.deprecated_call`` now captures ``PendingDeprecationWarning`` in context manager form.

View File

@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2 :maxdepth: 2
release-3.1.1
release-3.1.0 release-3.1.0
release-3.0.7 release-3.0.7
release-3.0.6 release-3.0.6

View File

@ -0,0 +1,23 @@
pytest-3.1.1
=======================================
pytest 3.1.1 has just been released to PyPI.
This is a bug-fix release, being a drop-in replacement. To upgrade::
pip install --upgrade pytest
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
Thanks to all who contributed to this release, among them:
* Bruno Oliveira
* Florian Bruhin
* Floris Bruynooghe
* Jason R. Coombs
* Ronny Pfannschmidt
* wanghui
Happy testing,
The pytest Development Team

View File

@ -25,14 +25,14 @@ Running pytest now produces this output::
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
rootdir: $REGENDOC_TMPDIR, inifile: rootdir: $REGENDOC_TMPDIR, inifile:
collected 1 items collected 1 items
test_show_warnings.py . test_show_warnings.py .
======= warnings summary ======== ======= warnings summary ========
test_show_warnings.py::test_one test_show_warnings.py::test_one
$REGENDOC_TMPDIR/test_show_warnings.py:4: DeprecationWarning: this function is deprecated, use another_function() $REGENDOC_TMPDIR/test_show_warnings.py:4: UserWarning: api v1, should use functions from v2
warnings.warn("this function is deprecated, use another_function()", DeprecationWarning) warnings.warn(UserWarning("api v1, should use functions from v2"))
-- Docs: http://doc.pytest.org/en/latest/warnings.html -- Docs: http://doc.pytest.org/en/latest/warnings.html
======= 1 passed, 1 warnings in 0.12 seconds ======== ======= 1 passed, 1 warnings in 0.12 seconds ========
@ -45,18 +45,18 @@ them into errors::
F F
======= FAILURES ======== ======= FAILURES ========
_______ test_one ________ _______ test_one ________
def test_one(): def test_one():
> assert deprecated_function() == 1 > assert api_v1() == 1
test_show_warnings.py:8: test_show_warnings.py:8:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def deprecated_function(): def api_v1():
> warnings.warn("this function is deprecated, use another_function()", DeprecationWarning) > warnings.warn(UserWarning("api v1, should use functions from v2"))
E DeprecationWarning: this function is deprecated, use another_function() E UserWarning: api v1, should use functions from v2
test_show_warnings.py:4: DeprecationWarning test_show_warnings.py:4: UserWarning
1 failed in 0.12 seconds 1 failed in 0.12 seconds
The same option can be set in the ``pytest.ini`` file using the ``filterwarnings`` ini option. The same option can be set in the ``pytest.ini`` file using the ``filterwarnings`` ini option.