Skip to content

Commit b27275e

Browse files
authored
Merge branch 'features' into record-testsuite-property
2 parents 20a3418 + f5c1f3d commit b27275e

29 files changed

+212
-191
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Christopher Gilling
5959
Christopher Dignam
6060
CrazyMerlyn
6161
Cyrus Maden
62+
Damian Skrzypczak
6263
Dhiren Serai
6364
Daniel Grana
6465
Daniel Hahler

azure-pipelines.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
# But no exception with py27-pexpect,py27-twisted,py27-numpy.
4444
PYTEST_COVERAGE: '1'
4545
pypy:
46-
python.version: 'pypy'
46+
python.version: 'pypy2'
4747
tox.env: 'pypy'
4848
python.exe: 'pypy'
49-
# NOTE: pypy3 fails to install pip currently due to an interal error.
49+
# NOTE: pypy3 fails to install pip currently due to an internal error.
5050
# pypy3:
5151
# python.version: 'pypy3'
5252
# tox.env: 'pypy3'
@@ -86,7 +86,6 @@ jobs:
8686

8787
steps:
8888
- task: UsePythonVersion@0
89-
condition: not(startsWith(variables['python.exe'], 'pypy'))
9089
inputs:
9190
versionSpec: '$(python.version)'
9291
architecture: 'x64'
@@ -95,23 +94,6 @@ jobs:
9594
condition: eq(variables['python.needs_vc'], True)
9695
displayName: 'Install VC for py27'
9796

98-
- script: choco install python.pypy
99-
condition: eq(variables['python.exe'], 'pypy')
100-
displayName: 'Install pypy'
101-
102-
- script: choco install pypy3
103-
condition: eq(variables['python.exe'], 'pypy3')
104-
displayName: 'Install pypy3'
105-
106-
- task: PowerShell@2
107-
inputs:
108-
targetType: 'inline'
109-
script: |
110-
Invoke-WebRequest -Uri "https://bootstrap.pypa.io/get-pip.py" -OutFile "get-pip.py"
111-
$(python.exe) get-pip.py
112-
condition: startsWith(variables['python.exe'], 'pypy')
113-
displayName: 'Install pip'
114-
11597
- script: $(python.exe) -m pip install --upgrade pip && $(python.exe) -m pip install tox
11698
displayName: 'Install tox'
11799

changelog/5171.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Doc: ``pytest_ignore_collect``, ``pytest_collect_directory``, ``pytest_collect_file`` and ``pytest_pycollect_makemodule`` hooks's 'path' parameter documented type is now ``py.path.local``

changelog/5182.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed internal and unused ``_pytest.deprecated.MARK_INFO_ATTRIBUTE``.

changelog/5188.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve help for ``--runxfail`` flag.

doc/en/assert.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ or bugs in dependencies.
154154
Assertions about expected warnings
155155
-----------------------------------------
156156

157-
.. versionadded:: 2.8
157+
158158

159159
You can check that code raises a particular warning using
160160
:ref:`pytest.warns <warns>`.
@@ -165,7 +165,7 @@ You can check that code raises a particular warning using
165165
Making use of context-sensitive comparisons
166166
-------------------------------------------------
167167

168-
.. versionadded:: 2.0
168+
169169

170170
``pytest`` has rich support for providing context-sensitive information
171171
when it encounters comparisons. For example:
@@ -284,7 +284,7 @@ the conftest file:
284284
Assertion introspection details
285285
-------------------------------
286286

287-
.. versionadded:: 2.1
287+
288288

289289

290290
Reporting details about a failing assertion is achieved by rewriting assert
@@ -335,13 +335,13 @@ If this is the case you have two options:
335335
* Disable rewriting for all modules by using ``--assert=plain``.
336336

337337

338-
.. versionadded:: 2.1
338+
339339
Add assert rewriting as an alternate introspection technique.
340340

341-
.. versionchanged:: 2.1
341+
342342
Introduce the ``--assert`` option. Deprecate ``--no-assert`` and
343343
``--nomagic``.
344344

345-
.. versionchanged:: 3.0
345+
346346
Removes the ``--no-assert`` and ``--nomagic`` options.
347347
Removes the ``--assert=reinterp`` option.

doc/en/cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Cache: working with cross-testrun state
66
=======================================
77

8-
.. versionadded:: 2.8
8+
99

1010
Usage
1111
---------

doc/en/capture.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,27 @@ same interface but allows to also capture output from
121121
libraries or subprocesses that directly write to operating
122122
system level output streams (FD1 and FD2).
123123

124-
.. versionadded:: 3.3
124+
125125

126126
The return value from ``readouterr`` changed to a ``namedtuple`` with two attributes, ``out`` and ``err``.
127127

128-
.. versionadded:: 3.3
128+
129129

130130
If the code under test writes non-textual data, you can capture this using
131131
the ``capsysbinary`` fixture which instead returns ``bytes`` from
132132
the ``readouterr`` method. The ``capfsysbinary`` fixture is currently only
133133
available in python 3.
134134

135135

136-
.. versionadded:: 3.3
136+
137137

138138
If the code under test writes non-textual data, you can capture this using
139139
the ``capfdbinary`` fixture which instead returns ``bytes`` from
140140
the ``readouterr`` method. The ``capfdbinary`` fixture operates on the
141141
filedescriptor level.
142142

143143

144-
.. versionadded:: 3.0
144+
145145

146146
To temporarily disable capture within a test, both ``capsys``
147147
and ``capfd`` have a ``disabled()`` method that can be used

doc/en/customize.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ which were registered by installed plugins.
2020
Initialization: determining rootdir and inifile
2121
-----------------------------------------------
2222

23-
.. versionadded:: 2.7
23+
2424

2525
pytest determines a ``rootdir`` for each test run which depends on
2626
the command line arguments (specified test files, paths) and on
@@ -90,7 +90,7 @@ The ``config`` object will subsequently carry these attributes:
9090

9191
- ``config.inifile``: the determined ini-file, may be ``None``.
9292

93-
The rootdir is used a reference directory for constructing test
93+
The rootdir is used as a reference directory for constructing test
9494
addresses ("nodeids") and can be used also by plugins for storing
9595
per-testrun information.
9696

doc/en/deprecations.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ If you still have concerns about this deprecation and future removal, please com
6060

6161
The ``pytest.config`` global object is deprecated. Instead use
6262
``request.config`` (via the ``request`` fixture) or if you are a plugin author
63-
use the ``pytest_configure(config)`` hook.
63+
use the ``pytest_configure(config)`` hook. Note that many hooks can also access
64+
the ``config`` object indirectly, through ``session.config`` or ``item.config`` for example.
6465

6566
.. _raises-warns-exec:
6667

@@ -104,7 +105,7 @@ Becomes:
104105
Result log (``--result-log``)
105106
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106107

107-
.. deprecated:: 3.0
108+
108109

109110
The ``--resultlog`` command line option has been deprecated: it is little used
110111
and there are more modern and better alternatives, for example `pytest-tap <https://tappy.readthedocs.io/en/latest/>`_.

0 commit comments

Comments
 (0)