@@ -7,7 +7,7 @@ kept here as a historical note so users looking at old code can find documentati
7
7
cache plugin integrated into the core
8
8
-------------------------------------
9
9
10
- .. versionadded :: 2.8
10
+
11
11
12
12
The functionality of the :ref: `core cache <cache >` plugin was previously distributed
13
13
as a third party plugin named ``pytest-cache ``. The core plugin
@@ -18,7 +18,7 @@ can only store/receive data between test runs that is json-serializable.
18
18
funcargs and ``pytest_funcarg__ ``
19
19
---------------------------------
20
20
21
- .. versionchanged :: 2.3
21
+
22
22
23
23
In versions prior to 2.3 there was no ``@pytest.fixture `` marker
24
24
and you had to use a magic ``pytest_funcarg__NAME `` prefix
@@ -30,7 +30,7 @@ functions.
30
30
``@pytest.yield_fixture `` decorator
31
31
-----------------------------------
32
32
33
- .. versionchanged :: 2.10
33
+
34
34
35
35
Prior to version 2.10, in order to use a ``yield `` statement to execute teardown code one
36
36
had to mark a fixture using the ``yield_fixture `` marker. From 2.10 onward, normal
@@ -41,7 +41,7 @@ and considered deprecated.
41
41
``[pytest] `` header in ``setup.cfg ``
42
42
------------------------------------
43
43
44
- .. versionchanged :: 3.0
44
+
45
45
46
46
Prior to 3.0, the supported section name was ``[pytest] ``. Due to how
47
47
this may collide with some distutils commands, the recommended
@@ -54,7 +54,7 @@ name is ``[pytest]``.
54
54
Applying marks to ``@pytest.mark.parametrize `` parameters
55
55
---------------------------------------------------------
56
56
57
- .. versionchanged :: 3.1
57
+
58
58
59
59
Prior to version 3.1 the supported mechanism for marking values
60
60
used the syntax:
@@ -80,7 +80,7 @@ The old syntax is planned to be removed in pytest-4.0.
80
80
``@pytest.mark.parametrize `` argument names as a tuple
81
81
------------------------------------------------------
82
82
83
- .. versionchanged :: 2.4
83
+
84
84
85
85
In versions prior to 2.4 one needed to specify the argument
86
86
names as a tuple. This remains valid but the simpler ``"name1,name2,..." ``
@@ -91,7 +91,7 @@ it's easier to write and produces less line noise.
91
91
setup: is now an "autouse fixture"
92
92
----------------------------------
93
93
94
- .. versionchanged :: 2.3
94
+
95
95
96
96
During development prior to the pytest-2.3 release the name
97
97
``pytest.setup `` was used but before the release it was renamed
@@ -104,7 +104,7 @@ namely :ref:`autouse fixtures`
104
104
Conditions as strings instead of booleans
105
105
-----------------------------------------
106
106
107
- .. versionchanged :: 2.4
107
+
108
108
109
109
Prior to pytest-2.4 the only way to specify skipif/xfail conditions was
110
110
to use strings:
@@ -171,7 +171,7 @@ The equivalent with "boolean conditions" is:
171
171
``pytest.set_trace() ``
172
172
----------------------
173
173
174
- .. versionchanged :: 2.4
174
+
175
175
176
176
Previous to version 2.4 to set a break point in code one needed to use ``pytest.set_trace() ``:
177
177
@@ -192,7 +192,7 @@ For more details see :ref:`breakpoints`.
192
192
"compat" properties
193
193
-------------------
194
194
195
- .. deprecated :: 3.9
195
+
196
196
197
197
Access of ``Module ``, ``Function ``, ``Class ``, ``Instance ``, ``File `` and ``Item `` through ``Node `` instances have long
198
198
been documented as deprecated, but started to emit warnings from pytest ``3.9 `` and onward.
0 commit comments