Skip to content

Commit ad9fa43

Browse files
committed
Preparing release version 5.2.0
1 parent eb7b95e commit ad9fa43

12 files changed

+79
-14
lines changed

CHANGELOG.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,42 @@ with advance notice in the **Deprecations** section of releases.
1818
1919
.. towncrier release notes start
2020
21+
pytest 5.2.0 (2019-09-28)
22+
=========================
23+
24+
Deprecations
25+
------------
26+
27+
- `#1682 <https://github.com/pytest-dev/pytest/issues/1682>`_: Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them
28+
as a keyword argument instead.
29+
30+
31+
32+
Features
33+
--------
34+
35+
- `#1682 <https://github.com/pytest-dev/pytest/issues/1682>`_: The ``scope`` parameter of ``@pytest.fixture`` can now be a callable that receives
36+
the fixture name and the ``config`` object as keyword-only parameters.
37+
See `the docs <https://docs.pytest.org/en/fixture.html#dynamic-scope>`__ for more information.
38+
39+
40+
- `#5764 <https://github.com/pytest-dev/pytest/issues/5764>`_: New behavior of the ``--pastebin`` option: failures to connect to the pastebin server are reported, without failing the pytest run
41+
42+
43+
44+
Bug Fixes
45+
---------
46+
47+
- `#5806 <https://github.com/pytest-dev/pytest/issues/5806>`_: Fix "lexer" being used when uploading to bpaste.net from ``--pastebin`` to "text".
48+
49+
50+
51+
Trivial/Internal Changes
52+
------------------------
53+
54+
- `#5056 <https://github.com/pytest-dev/pytest/issues/5056>`_: The HelpFormatter uses ``py.io.get_terminal_width`` for better width detection.
55+
56+
2157
pytest 5.1.3 (2019-09-18)
2258
=========================
2359

changelog/1682.deprecation.rst

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

changelog/1682.feature.rst

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

changelog/5056.trivial.rst

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

changelog/5764.feature.rst

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

changelog/5806.bugfix.rst

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-5.2.0
910
release-5.1.3
1011
release-5.1.2
1112
release-5.1.1

doc/en/announce/release-5.2.0.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
pytest-5.2.0
2+
=======================================
3+
4+
The pytest team is proud to announce the 5.2.0 release!
5+
6+
pytest is a mature Python testing tool with more than a 2000 tests
7+
against itself, passing on many different interpreters and platforms.
8+
9+
This release contains a number of bugs fixes and improvements, so users are encouraged
10+
to take a look at the CHANGELOG:
11+
12+
https://docs.pytest.org/en/latest/changelog.html
13+
14+
For complete documentation, please visit:
15+
16+
https://docs.pytest.org/en/latest/
17+
18+
As usual, you can upgrade from pypi via:
19+
20+
pip install -U pytest
21+
22+
Thanks to all who contributed to this release, among them:
23+
24+
* Andrzej Klajnert
25+
* Anthony Sottile
26+
* Bruno Oliveira
27+
* Daniel Hahler
28+
* James Cooke
29+
* Michael Goerz
30+
* Ran Benita
31+
* Tomáš Chvátal
32+
* aklajnert
33+
34+
35+
Happy testing,
36+
The Pytest Development Team

doc/en/example/parametrize.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@ Running it results in some skips if we don't have all the python interpreters in
475475
.. code-block:: pytest
476476
477477
. $ pytest -rs -q multipython.py
478-
ssssssssssss...ssssssssssss [100%]
478+
ssssssssssssssssssssssss... [100%]
479479
========================= short test summary info ==========================
480480
SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.5' not found
481-
SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.7' not found
481+
SKIPPED [12] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.6' not found
482482
3 passed, 24 skipped in 0.12s
483483
484484
Indirect parametrization of optional implementations/imports

doc/en/example/reportingdemo.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
436436
items = [1, 2, 3]
437437
print("items is {!r}".format(items))
438438
> a, b = items.pop()
439-
E TypeError: 'int' object is not iterable
439+
E TypeError: cannot unpack non-iterable int object
440440
441441
failure_demo.py:181: TypeError
442442
--------------------------- Captured stdout call ---------------------------
@@ -516,7 +516,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
516516
def test_z2_type_error(self):
517517
items = 3
518518
> a, b = items
519-
E TypeError: 'int' object is not iterable
519+
E TypeError: cannot unpack non-iterable int object
520520
521521
failure_demo.py:222: TypeError
522522
______________________ TestMoreErrors.test_startswith ______________________

doc/en/example/simple.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Now we can profile which test functions execute the slowest:
444444
test_some_are_slow.py ... [100%]
445445
446446
========================= slowest 3 test durations =========================
447-
0.30s call test_some_are_slow.py::test_funcslow2
447+
0.32s call test_some_are_slow.py::test_funcslow2
448448
0.21s call test_some_are_slow.py::test_funcslow1
449449
0.10s call test_some_are_slow.py::test_funcfast
450450
============================ 3 passed in 0.12s =============================

doc/en/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Install ``pytest``
2828
.. code-block:: bash
2929
3030
$ pytest --version
31-
This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.6/site-packages/pytest.py
31+
This is pytest version 5.x.y, imported from $PYTHON_PREFIX/lib/python3.7/site-packages/pytest.py
3232
3333
.. _`simpletest`:
3434

0 commit comments

Comments
 (0)