Skip to content

Commit f3277ae

Browse files
authored
Merge branch 'master' into release-6.0.0rc1
2 parents 200d139 + 9caca5c commit f3277ae

File tree

122 files changed

+273
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+273
-221
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Changelog
33
=========
44

5-
The pytest CHANGELOG is located `here <https://docs.pytest.org/en/latest/changelog.html>`__.
5+
The pytest CHANGELOG is located `here <https://docs.pytest.org/en/stable/changelog.html>`__.
66

77
The source document can be found at: https://github.com/pytest-dev/pytest/blob/master/doc/en/changelog.rst

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Here is a simple overview, with pytest-specific bits:
294294
Writing Tests
295295
~~~~~~~~~~~~~
296296

297-
Writing tests for plugins or for pytest itself is often done using the `testdir fixture <https://docs.pytest.org/en/latest/reference.html#testdir>`_, as a "black-box" test.
297+
Writing tests for plugins or for pytest itself is often done using the `testdir fixture <https://docs.pytest.org/en/stable/reference.html#testdir>`_, as a "black-box" test.
298298

299299
For example, to ensure a simple test passes you can write:
300300

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. image:: https://docs.pytest.org/en/latest/_static/pytest1.png
2-
:target: https://docs.pytest.org/en/latest/
1+
.. image:: https://docs.pytest.org/en/stable/_static/pytest1.png
2+
:target: https://docs.pytest.org/en/stable/
33
:align: center
44
:alt: pytest
55

@@ -71,23 +71,23 @@ To execute it::
7171
========================== 1 failed in 0.04 seconds ===========================
7272

7373

74-
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/latest/getting-started.html#our-first-test-run>`_ for more examples.
74+
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>`_ for more examples.
7575

7676

7777
Features
7878
--------
7979

80-
- Detailed info on failing `assert statements <https://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
80+
- Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/assert.html>`_ (no need to remember ``self.assert*`` names);
8181

8282
- `Auto-discovery
83-
<https://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
83+
<https://docs.pytest.org/en/stable/goodpractices.html#python-test-discovery>`_
8484
of test modules and functions;
8585

86-
- `Modular fixtures <https://docs.pytest.org/en/latest/fixture.html>`_ for
86+
- `Modular fixtures <https://docs.pytest.org/en/stable/fixture.html>`_ for
8787
managing small or parametrized long-lived test resources;
8888

89-
- Can run `unittest <https://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
90-
`nose <https://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
89+
- Can run `unittest <https://docs.pytest.org/en/stable/unittest.html>`_ (or trial),
90+
`nose <https://docs.pytest.org/en/stable/nose.html>`_ test suites out of the box;
9191

9292
- Python 3.5+ and PyPy3;
9393

@@ -97,7 +97,7 @@ Features
9797
Documentation
9898
-------------
9999

100-
For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/latest/.
100+
For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
101101

102102

103103
Bugs/Requests
@@ -109,7 +109,7 @@ Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issue
109109
Changelog
110110
---------
111111

112-
Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
112+
Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
113113

114114

115115
Support pytest

doc/en/_templates/layout.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{#
2+
3+
Copied from:
4+
5+
https://raw.githubusercontent.com/pallets/pallets-sphinx-themes/b0c6c41849b4e15cbf62cc1d95c05ef2b3e155c8/src/pallets_sphinx_themes/themes/pocoo/layout.html
6+
7+
And removed the warning version (see #7331).
8+
9+
#}
10+
11+
{% extends "basic/layout.html" %}
12+
13+
{% set metatags %}
14+
{{- metatags }}
15+
<meta name="viewport" content="width=device-width, initial-scale=1">
16+
{%- endset %}
17+
18+
{% block extrahead %}
19+
{%- if page_canonical_url %}
20+
<link rel="canonical" href="{{ page_canonical_url }}">
21+
{%- endif %}
22+
<script>DOCUMENTATION_OPTIONS.URL_ROOT = '{{ url_root }}';</script>
23+
{{ super() }}
24+
{%- endblock %}
25+
26+
{% block sidebarlogo %}
27+
{% if pagename != "index" or theme_index_sidebar_logo %}
28+
{{ super() }}
29+
{% endif %}
30+
{% endblock %}
31+
32+
{% block relbar2 %}{% endblock %}
33+
34+
{% block sidebar2 %}
35+
<span id="sidebar-top"></span>
36+
{{- super() }}
37+
{%- endblock %}
38+
39+
{% block footer %}
40+
{{ super() }}
41+
{%- if READTHEDOCS and not readthedocs_docsearch %}
42+
<script>
43+
if (typeof READTHEDOCS_DATA !== 'undefined') {
44+
if (!READTHEDOCS_DATA.features) {
45+
READTHEDOCS_DATA.features = {};
46+
}
47+
READTHEDOCS_DATA.features.docsearch_disabled = true;
48+
}
49+
</script>
50+
{%- endif %}
51+
{{ js_tag("_static/version_warning_offset.js") }}
52+
{% endblock %}

doc/en/announce/release-2.0.0.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ see below for summary and detailed lists. A lot of long-deprecated code
77
has been removed, resulting in a much smaller and cleaner
88
implementation. See the new docs with examples here:
99

10-
http://pytest.org/en/latest/index.html
10+
http://pytest.org/en/stable/index.html
1111

1212
A note on packaging: pytest used to part of the "py" distribution up
1313
until version py-1.3.4 but this has changed now: pytest-2.0.0 only
@@ -36,12 +36,12 @@ New Features
3636

3737
import pytest ; pytest.main(arglist, pluginlist)
3838

39-
see http://pytest.org/en/latest/usage.html for details.
39+
see http://pytest.org/en/stable/usage.html for details.
4040

4141
- new and better reporting information in assert expressions
4242
if comparing lists, sequences or strings.
4343

44-
see http://pytest.org/en/latest/assert.html#newreport
44+
see http://pytest.org/en/stable/assert.html#newreport
4545

4646
- new configuration through ini-files (setup.cfg or tox.ini recognized),
4747
for example::
@@ -50,7 +50,7 @@ New Features
5050
norecursedirs = .hg data* # don't ever recurse in such dirs
5151
addopts = -x --pyargs # add these command line options by default
5252

53-
see http://pytest.org/en/latest/customize.html
53+
see http://pytest.org/en/stable/customize.html
5454

5555
- improved standard unittest support. In general py.test should now
5656
better be able to run custom unittest.TestCases like twisted trial

doc/en/announce/release-2.0.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Changes between 2.0.0 and 2.0.1
5757
- refinements to "collecting" output on non-ttys
5858
- refine internal plugin registration and --traceconfig output
5959
- introduce a mechanism to prevent/unregister plugins from the
60-
command line, see http://pytest.org/en/latest/plugins.html#cmdunregister
60+
command line, see http://pytest.org/en/stable/plugins.html#cmdunregister
6161
- activate resultlog plugin by default
6262
- fix regression wrt yielded tests which due to the
6363
collection-before-running semantics were not

doc/en/announce/release-2.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ courtesy of Benjamin Peterson. You can now safely use ``assert``
1212
statements in test modules without having to worry about side effects
1313
or python optimization ("-OO") options. This is achieved by rewriting
1414
assert statements in test modules upon import, using a PEP302 hook.
15-
See https://docs.pytest.org/en/latest/assert.html for
15+
See https://docs.pytest.org/en/stable/assert.html for
1616
detailed information. The work has been partly sponsored by my company,
1717
merlinux GmbH.
1818

doc/en/announce/release-2.2.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with these improvements:
99

1010
- new @pytest.mark.parametrize decorator to run tests with different arguments
1111
- new metafunc.parametrize() API for parametrizing arguments independently
12-
- see examples at http://pytest.org/en/latest/example/parametrize.html
12+
- see examples at http://pytest.org/en/stable/example/parametrize.html
1313
- NOTE that parametrize() related APIs are still a bit experimental
1414
and might change in future releases.
1515

@@ -18,7 +18,7 @@ with these improvements:
1818
- "-m markexpr" option for selecting tests according to their mark
1919
- a new "markers" ini-variable for registering test markers for your project
2020
- the new "--strict" bails out with an error if using unregistered markers.
21-
- see examples at http://pytest.org/en/latest/example/markers.html
21+
- see examples at http://pytest.org/en/stable/example/markers.html
2222

2323
* duration profiling: new "--duration=N" option showing the N slowest test
2424
execution or setup/teardown calls. This is most useful if you want to
@@ -78,7 +78,7 @@ Changes between 2.1.3 and 2.2.0
7878
or through plugin hooks. Also introduce a "--strict" option which
7979
will treat unregistered markers as errors
8080
allowing to avoid typos and maintain a well described set of markers
81-
for your test suite. See examples at http://pytest.org/en/latest/mark.html
81+
for your test suite. See examples at http://pytest.org/en/stable/mark.html
8282
and its links.
8383
- issue50: introduce "-m marker" option to select tests based on markers
8484
(this is a stricter and more predictable version of "-k" in that "-m"

doc/en/announce/release-2.3.0.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ re-usable fixture design.
1313

1414
For detailed info and tutorial-style examples, see:
1515

16-
http://pytest.org/en/latest/fixture.html
16+
http://pytest.org/en/stable/fixture.html
1717

1818
Moreover, there is now support for using pytest fixtures/funcargs with
1919
unittest-style suites, see here for examples:
2020

21-
http://pytest.org/en/latest/unittest.html
21+
http://pytest.org/en/stable/unittest.html
2222

2323
Besides, more unittest-test suites are now expected to "simply work"
2424
with pytest.
@@ -29,11 +29,11 @@ pytest-2.2.4.
2929

3030
If you are interested in the precise reasoning (including examples) of the
3131
pytest-2.3 fixture evolution, please consult
32-
http://pytest.org/en/latest/funcarg_compare.html
32+
http://pytest.org/en/stable/funcarg_compare.html
3333

3434
For general info on installation and getting started:
3535

36-
http://pytest.org/en/latest/getting-started.html
36+
http://pytest.org/en/stable/getting-started.html
3737

3838
Docs and PDF access as usual at:
3939

@@ -94,7 +94,7 @@ Changes between 2.2.4 and 2.3.0
9494
- pluginmanager.register(...) now raises ValueError if the
9595
plugin has been already registered or the name is taken
9696

97-
- fix issue159: improve http://pytest.org/en/latest/faq.html
97+
- fix issue159: improve http://pytest.org/en/stable/faq.html
9898
especially with respect to the "magic" history, also mention
9999
pytest-django, trial and unittest integration.
100100

doc/en/announce/release-2.3.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ comes with the following fixes and features:
1616
- yielded test functions will now have autouse-fixtures active but
1717
cannot accept fixtures as funcargs - it's anyway recommended to
1818
rather use the post-2.0 parametrize features instead of yield, see:
19-
http://pytest.org/en/latest/example/parametrize.html
19+
http://pytest.org/en/stable/example/parametrize.html
2020
- fix autouse-issue where autouse-fixtures would not be discovered
2121
if defined in an a/conftest.py file and tests in a/tests/test_some.py
2222
- fix issue226 - LIFO ordering for fixture teardowns

doc/en/announce/release-2.4.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from a few supposedly very minor incompatibilities. See below for
77
a full list of details. A few feature highlights:
88

99
- new yield-style fixtures `pytest.yield_fixture
10-
<http://pytest.org/en/latest/yieldfixture.html>`_, allowing to use
10+
<http://pytest.org/en/stable/yieldfixture.html>`_, allowing to use
1111
existing with-style context managers in fixture functions.
1212

1313
- improved pdb support: ``import pdb ; pdb.set_trace()`` now works

doc/en/announce/release-2.7.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ holger krekel
5252
- add ability to set command line options by environment variable PYTEST_ADDOPTS.
5353

5454
- added documentation on the new pytest-dev teams on bitbucket and
55-
github. See https://pytest.org/en/latest/contributing.html .
55+
github. See https://pytest.org/en/stable/contributing.html .
5656
Thanks to Anatoly for pushing and initial work on this.
5757

5858
- fix issue650: new option ``--docttest-ignore-import-errors`` which

doc/en/announce/release-2.9.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The py.test Development Team
131131
with same name.
132132

133133

134-
.. _`traceback style docs`: https://pytest.org/en/latest/usage.html#modifying-python-traceback-printing
134+
.. _`traceback style docs`: https://pytest.org/en/stable/usage.html#modifying-python-traceback-printing
135135

136136
.. _#1422: https://github.com/pytest-dev/pytest/issues/1422
137137
.. _#1379: https://github.com/pytest-dev/pytest/issues/1379

doc/en/announce/release-3.0.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ drop-in replacement. To upgrade:
88

99
pip install --upgrade pytest
1010

11-
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
The changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1212

1313
Thanks to all who contributed to this release, among them:
1414

doc/en/announce/release-3.0.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ drop-in replacement. To upgrade::
88

99
pip install --upgrade pytest
1010

11-
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
The changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1212

1313
Thanks to all who contributed to this release, among them:
1414

doc/en/announce/release-3.0.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ being a drop-in replacement. To upgrade::
88

99
pip install --upgrade pytest
1010

11-
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
The changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1212

1313
Thanks to all who contributed to this release, among them:
1414

doc/en/announce/release-3.0.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ being a drop-in replacement. To upgrade::
88

99
pip install --upgrade pytest
1010

11-
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
11+
The changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1212

1313
Thanks to all who contributed to this release, among them:
1414

doc/en/announce/release-3.0.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

doc/en/announce/release-3.0.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212

1313
Thanks to all who contributed to this release, among them:

doc/en/announce/release-3.0.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

doc/en/announce/release-3.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ against itself, passing on many different interpreters and platforms.
99
This release contains a bugs fixes and improvements, so users are encouraged
1010
to take a look at the CHANGELOG:
1111

12-
http://doc.pytest.org/en/latest/changelog.html
12+
http://doc.pytest.org/en/stable/changelog.html
1313

1414
For complete documentation, please visit:
1515

doc/en/announce/release-3.1.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

doc/en/announce/release-3.1.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

doc/en/announce/release-3.1.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at http://doc.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at http://doc.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

doc/en/announce/release-3.10.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ against itself, passing on many different interpreters and platforms.
99
This release contains a number of bugs fixes and improvements, so users are encouraged
1010
to take a look at the CHANGELOG:
1111

12-
https://docs.pytest.org/en/latest/changelog.html
12+
https://docs.pytest.org/en/stable/changelog.html
1313

1414
For complete documentation, please visit:
1515

16-
https://docs.pytest.org/en/latest/
16+
https://docs.pytest.org/en/stable/
1717

1818
As usual, you can upgrade from pypi via:
1919

doc/en/announce/release-3.10.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a bug-fix release, being a drop-in replacement. To upgrade::
77

88
pip install --upgrade pytest
99

10-
The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.
10+
The full changelog is available at https://docs.pytest.org/en/stable/changelog.html.
1111

1212
Thanks to all who contributed to this release, among them:
1313

0 commit comments

Comments
 (0)