Skip to content

Commit 2fd7626

Browse files
committed
Preparing release version 3.1.1
1 parent 0540d72 commit 2fd7626

File tree

9 files changed

+65
-25
lines changed

9 files changed

+65
-25
lines changed

CHANGELOG.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,33 @@
66
https://pip.pypa.io/en/latest/development/#adding-a-news-entry
77
we named the news folder changelog
88
9-
109
.. towncrier release notes start
1110
11+
Pytest 3.1.1 (2017-05-30)
12+
=========================
13+
14+
Bug Fixes
15+
---------
16+
17+
- pytest warning capture no longer overrides existing warning filters. The
18+
previous behaviour would override all filters and caused regressions in test
19+
suites which configure warning filters to match their needs. Note that as a
20+
side-effect of this is that ``DeprecationWarning`` and
21+
``PendingDeprecationWarning`` are no longer shown by default. (#2430)
22+
23+
- Fix issue with non-ascii contents in doctest text files. (#2434)
24+
25+
- Fix encoding errors for unicode warnings in Python 2. (#2436)
26+
27+
- ``pytest.deprecated_call`` now captures ``PendingDeprecationWarning`` in
28+
context manager form. (#2441)
29+
30+
31+
Improved Documentation
32+
----------------------
33+
34+
- Addition of towncrier for changelog management. (#2390)
35+
1236

1337
3.1.0 (2017-05-22)
1438
==================

changelog/2390.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2430.bugfix

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/2434.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2436.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2441.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/en/announce/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-3.1.1
910
release-3.1.0
1011
release-3.0.7
1112
release-3.0.6

doc/en/announce/release-3.1.1.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
pytest-3.1.1
2+
=======================================
3+
4+
pytest 3.1.1 has just been released to PyPI.
5+
6+
This is a bug-fix release, being a drop-in replacement. To upgrade::
7+
8+
pip install --upgrade pytest
9+
10+
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* Bruno Oliveira
15+
* Florian Bruhin
16+
* Floris Bruynooghe
17+
* Jason R. Coombs
18+
* Ronny Pfannschmidt
19+
* wanghui
20+
21+
22+
Happy testing,
23+
The pytest Development Team

doc/en/warnings.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Running pytest now produces this output::
2525
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
2626
rootdir: $REGENDOC_TMPDIR, inifile:
2727
collected 1 items
28-
28+
2929
test_show_warnings.py .
30-
30+
3131
======= warnings summary ========
3232
test_show_warnings.py::test_one
33-
$REGENDOC_TMPDIR/test_show_warnings.py:4: DeprecationWarning: this function is deprecated, use another_function()
34-
warnings.warn("this function is deprecated, use another_function()", DeprecationWarning)
35-
33+
$REGENDOC_TMPDIR/test_show_warnings.py:4: UserWarning: api v1, should use functions from v2
34+
warnings.warn(UserWarning("api v1, should use functions from v2"))
35+
3636
-- Docs: http://doc.pytest.org/en/latest/warnings.html
3737
======= 1 passed, 1 warnings in 0.12 seconds ========
3838

@@ -45,18 +45,18 @@ them into errors::
4545
F
4646
======= FAILURES ========
4747
_______ test_one ________
48-
48+
4949
def test_one():
50-
> assert deprecated_function() == 1
51-
52-
test_show_warnings.py:8:
53-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
54-
55-
def deprecated_function():
56-
> warnings.warn("this function is deprecated, use another_function()", DeprecationWarning)
57-
E DeprecationWarning: this function is deprecated, use another_function()
58-
59-
test_show_warnings.py:4: DeprecationWarning
50+
> assert api_v1() == 1
51+
52+
test_show_warnings.py:8:
53+
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
54+
55+
def api_v1():
56+
> warnings.warn(UserWarning("api v1, should use functions from v2"))
57+
E UserWarning: api v1, should use functions from v2
58+
59+
test_show_warnings.py:4: UserWarning
6060
1 failed in 0.12 seconds
6161

6262
The same option can be set in the ``pytest.ini`` file using the ``filterwarnings`` ini option.

0 commit comments

Comments
 (0)