Skip to content

Commit e0ea00a

Browse files
authored
Merge pull request #7798 from bluetech/cherry-pick-release
Cherry-pick 6.1.0 release notes
2 parents 0b327cc + 19c78ab commit e0ea00a

27 files changed

+237
-110
lines changed

changelog/1477.doc.rst

-1
This file was deleted.

changelog/1953.bugfix.rst

-20
This file was deleted.

changelog/4984.bugfix.rst

-3
This file was deleted.

changelog/5585.breaking.rst

-18
This file was deleted.

changelog/6681.improvement.rst

-3
This file was deleted.

changelog/6981.deprecation.rst

-1
This file was deleted.

changelog/7097.deprecation.rst

-6
This file was deleted.

changelog/7210.deprecation.rst

-5
This file was deleted.

changelog/7255.deprecation.rst

-2
This file was deleted.

changelog/7536.trivial.rst

-3
This file was deleted.

changelog/7572.improvement.rst

-1
This file was deleted.

changelog/7587.trivial.rst

-1
This file was deleted.

changelog/7591.bugfix.rst

-1
This file was deleted.

changelog/7628.bugfix.rst

-1
This file was deleted.

changelog/7631.trivial.rst

-2
This file was deleted.

changelog/7638.bugfix.rst

-1
This file was deleted.

changelog/7648.deprecation.rst

-3
This file was deleted.

changelog/7667.feature.rst

-1
This file was deleted.

changelog/7671.trivial.rst

-6
This file was deleted.

changelog/7685.improvement.rst

-3
This file was deleted.

changelog/7742.bugfix.rst

-1
This file was deleted.

changelog/7780.improvement.rst

-3
This file was deleted.

doc/en/announce/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release announcements
66
:maxdepth: 2
77

88

9+
release-6.1.0
910
release-6.0.2
1011
release-6.0.1
1112
release-6.0.0

doc/en/announce/release-6.1.0.rst

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
pytest-6.1.0
2+
=======================================
3+
4+
The pytest team is proud to announce the 6.1.0 release!
5+
6+
This release contains new features, improvements, bug fixes, and breaking changes, so users
7+
are encouraged to take a look at the CHANGELOG carefully:
8+
9+
https://docs.pytest.org/en/stable/changelog.html
10+
11+
For complete documentation, please visit:
12+
13+
https://docs.pytest.org/en/stable/
14+
15+
As usual, you can upgrade from PyPI via:
16+
17+
pip install -U pytest
18+
19+
Thanks to all of the contributors to this release:
20+
21+
* Anthony Sottile
22+
* Bruno Oliveira
23+
* C. Titus Brown
24+
* Drew Devereux
25+
* Faris A Chugthai
26+
* Florian Bruhin
27+
* Hugo van Kemenade
28+
* Hynek Schlawack
29+
* Joseph Lucas
30+
* Kamran Ahmad
31+
* Mattreex
32+
* Maximilian Cosmo Sitter
33+
* Ran Benita
34+
* Rüdiger Busche
35+
* Sam Estep
36+
* Sorin Sbarnea
37+
* Thomas Grainger
38+
* Vipul Kumar
39+
* Yutaro Ikeda
40+
* hp310780
41+
42+
43+
Happy testing,
44+
The pytest Development Team

doc/en/builtin.rst

+31-23
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
2323
cache.get(key, default)
2424
cache.set(key, value)
2525
26-
Keys must be a ``/`` separated value, where the first part is usually the
26+
Keys must be ``/`` separated strings, where the first part is usually the
2727
name of your plugin or application to avoid clashes with other cache users.
2828
2929
Values can be any object handled by the json stdlib module.
@@ -57,7 +57,8 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
5757
``out`` and ``err`` will be ``byte`` objects.
5858
5959
doctest_namespace [session scope]
60-
Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
60+
Fixture that returns a :py:class:`dict` that will be injected into the
61+
namespace of doctests.
6162
6263
pytestconfig [session scope]
6364
Session-scoped fixture that returns the :class:`_pytest.config.Config` object.
@@ -89,8 +90,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
8990
automatically XML-encoded.
9091
9192
record_testsuite_property [session scope]
92-
Records a new ``<property>`` tag as child of the root ``<testsuite>``. This is suitable to
93-
writing global information regarding the entire test suite, and is compatible with ``xunit2`` JUnit family.
93+
Record a new ``<property>`` tag as child of the root ``<testsuite>``.
94+
95+
This is suitable to writing global information regarding the entire test
96+
suite, and is compatible with ``xunit2`` JUnit family.
9497
9598
This is a ``session``-scoped fixture which is called with ``(name, value)``. Example:
9699
@@ -102,6 +105,12 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
102105
103106
``name`` must be a string, ``value`` will be converted to a string and properly xml-escaped.
104107
108+
.. warning::
109+
110+
Currently this fixture **does not work** with the
111+
`pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See issue
112+
`#7767 <https://github.com/pytest-dev/pytest/issues/7767>`__ for details.
113+
105114
caplog
106115
Access and control log capturing.
107116
@@ -114,8 +123,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
114123
* caplog.clear() -> clear captured records and formatted log output string
115124
116125
monkeypatch
117-
The returned ``monkeypatch`` fixture provides these
118-
helper methods to modify objects, dictionaries or os.environ::
126+
A convenient fixture for monkey-patching.
127+
128+
The fixture provides these methods to modify objects, dictionaries or
129+
os.environ::
119130
120131
monkeypatch.setattr(obj, name, value, raising=True)
121132
monkeypatch.delattr(obj, name, raising=True)
@@ -126,10 +137,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
126137
monkeypatch.syspath_prepend(path)
127138
monkeypatch.chdir(path)
128139
129-
All modifications will be undone after the requesting
130-
test function or fixture has finished. The ``raising``
131-
parameter determines if a KeyError or AttributeError
132-
will be raised if the set/deletion operation has no target.
140+
All modifications will be undone after the requesting test function or
141+
fixture has finished. The ``raising`` parameter determines if a KeyError
142+
or AttributeError will be raised if the set/deletion operation has no target.
133143
134144
recwarn
135145
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.
@@ -140,30 +150,28 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
140150
tmpdir_factory [session scope]
141151
Return a :class:`_pytest.tmpdir.TempdirFactory` instance for the test session.
142152
143-
144153
tmp_path_factory [session scope]
145154
Return a :class:`_pytest.tmpdir.TempPathFactory` instance for the test session.
146155
147-
148156
tmpdir
149-
Return a temporary directory path object
150-
which is unique to each test function invocation,
151-
created as a sub directory of the base temporary
152-
directory. The returned object is a `py.path.local`_
153-
path object.
157+
Return a temporary directory path object which is unique to each test
158+
function invocation, created as a sub directory of the base temporary
159+
directory.
160+
161+
The returned object is a `py.path.local`_ path object.
154162
155163
.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html
156164
157165
tmp_path
158-
Return a temporary directory path object
159-
which is unique to each test function invocation,
160-
created as a sub directory of the base temporary
161-
directory. The returned object is a :class:`pathlib.Path`
162-
object.
166+
Return a temporary directory path object which is unique to each test
167+
function invocation, created as a sub directory of the base temporary
168+
directory.
169+
170+
The returned object is a :class:`pathlib.Path` object.
163171
164172
.. note::
165173
166-
in python < 3.6 this is a pathlib2.Path
174+
In python < 3.6 this is a pathlib2.Path.
167175
168176
169177
no tests ran in 0.12s

0 commit comments

Comments
 (0)