Skip to content

Commit e56544c

Browse files
committed
Preparing release version 5.1.2
1 parent f9cc704 commit e56544c

27 files changed

+127
-86
lines changed

CHANGELOG.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,32 @@ with advance notice in the **Deprecations** section of releases.
1818
1919
.. towncrier release notes start
2020
21+
pytest 5.1.2 (2019-08-30)
22+
=========================
23+
24+
Bug Fixes
25+
---------
26+
27+
- `#2270 <https://github.com/pytest-dev/pytest/issues/2270>`_: Fixed ``self`` reference in function-scoped fixtures defined plugin classes: previously ``self``
28+
would be a reference to a *test* class, not the *plugin* class.
29+
30+
31+
- `#570 <https://github.com/pytest-dev/pytest/issues/570>`_: Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during
32+
parametrization.
33+
34+
35+
- `#5782 <https://github.com/pytest-dev/pytest/issues/5782>`_: Fix decoding error when printing an error response from ``--pastebin``.
36+
37+
38+
- `#5786 <https://github.com/pytest-dev/pytest/issues/5786>`_: Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like
39+
``pytest-xdist`` to display them properly.
40+
41+
42+
- `#5792 <https://github.com/pytest-dev/pytest/issues/5792>`_: Windows: Fix error that occurs in certain circumstances when loading
43+
``conftest.py`` from a working directory that has casing other than the one stored
44+
in the filesystem (e.g., ``c:\test`` instead of ``C:\test``).
45+
46+
2147
pytest 5.1.1 (2019-08-20)
2248
=========================
2349

changelog/2270.bugfix.rst

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

changelog/570.bugfix.rst

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

changelog/5782.bugfix.rst

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

changelog/5786.bugfix.rst

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

changelog/5792.bugfix.rst

Lines changed: 0 additions & 3 deletions
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.1.2
910
release-5.1.1
1011
release-5.1.0
1112
release-5.0.1

doc/en/announce/release-5.1.2.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
pytest-5.1.2
2+
=======================================
3+
4+
pytest 5.1.2 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 https://docs.pytest.org/en/latest/changelog.html.
11+
12+
Thanks to all who contributed to this release, among them:
13+
14+
* Andrzej Klajnert
15+
* Anthony Sottile
16+
* Bruno Oliveira
17+
* Christian Neumüller
18+
* Robert Holt
19+
* linchiwei123
20+
21+
22+
Happy testing,
23+
The pytest Development Team

doc/en/assert.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ you will see the return value of the function call:
4747
E + where 3 = f()
4848
4949
test_assert1.py:6: AssertionError
50-
============================ 1 failed in 0.02s =============================
50+
============================ 1 failed in 0.12s =============================
5151
5252
``pytest`` has support for showing the values of the most common subexpressions
5353
including calls, attributes, comparisons, and binary and unary
@@ -208,7 +208,7 @@ if you run this module:
208208
E Use -v to get the full diff
209209
210210
test_assert2.py:6: AssertionError
211-
============================ 1 failed in 0.02s =============================
211+
============================ 1 failed in 0.12s =============================
212212
213213
Special comparisons are done for a number of cases:
214214

doc/en/cache.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If you run this for the first time you will see two failures:
7575
E Failed: bad luck
7676
7777
test_50.py:7: Failed
78-
2 failed, 48 passed in 0.08s
78+
2 failed, 48 passed in 0.07s
7979
8080
If you then run it with ``--lf``:
8181

@@ -114,7 +114,7 @@ If you then run it with ``--lf``:
114114
E Failed: bad luck
115115
116116
test_50.py:7: Failed
117-
===================== 2 failed, 48 deselected in 0.02s =====================
117+
===================== 2 failed, 48 deselected in 0.12s =====================
118118
119119
You have run only the two failing tests from the last run, while the 48 passing
120120
tests have not been run ("deselected").
@@ -158,7 +158,7 @@ of ``FF`` and dots):
158158
E Failed: bad luck
159159
160160
test_50.py:7: Failed
161-
======================= 2 failed, 48 passed in 0.07s =======================
161+
======================= 2 failed, 48 passed in 0.12s =======================
162162
163163
.. _`config.cache`:
164164

@@ -283,7 +283,7 @@ You can always peek at the content of the cache using the
283283
example/value contains:
284284
42
285285
286-
========================== no tests ran in 0.00s ===========================
286+
========================== no tests ran in 0.12s ===========================
287287
288288
``--cache-show`` takes an optional argument to specify a glob pattern for
289289
filtering:
@@ -300,7 +300,7 @@ filtering:
300300
example/value contains:
301301
42
302302
303-
========================== no tests ran in 0.00s ===========================
303+
========================== no tests ran in 0.12s ===========================
304304
305305
Clearing Cache content
306306
----------------------

0 commit comments

Comments
 (0)