Merge pull request #9063 from nicoddemus/cherry-pick-release
Merge pull request #9057 from pytest-dev/release-6.2.5
This commit is contained in:
		
						commit
						771c4b9313
					
				| 
						 | 
				
			
			@ -1 +0,0 @@
 | 
			
		|||
Python 3.10 is now supported.
 | 
			
		||||
| 
						 | 
				
			
			@ -1 +0,0 @@
 | 
			
		|||
Enable compatibility with ``pluggy 1.0`` or later.
 | 
			
		||||
| 
						 | 
				
			
			@ -6,6 +6,7 @@ Release announcements
 | 
			
		|||
   :maxdepth: 2
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
   release-6.2.5
 | 
			
		||||
   release-6.2.4
 | 
			
		||||
   release-6.2.3
 | 
			
		||||
   release-6.2.2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
pytest-6.2.5
 | 
			
		||||
=======================================
 | 
			
		||||
 | 
			
		||||
pytest 6.2.5 has just been released to PyPI.
 | 
			
		||||
 | 
			
		||||
This is a bug-fix release, being a drop-in replacement. To upgrade::
 | 
			
		||||
 | 
			
		||||
  pip install --upgrade pytest
 | 
			
		||||
 | 
			
		||||
The full changelog is available at https://docs.pytest.org/en/stable/changelog.html.
 | 
			
		||||
 | 
			
		||||
Thanks to all of the contributors to this release:
 | 
			
		||||
 | 
			
		||||
* Anthony Sottile
 | 
			
		||||
* Bruno Oliveira
 | 
			
		||||
* Brylie Christopher Oxley
 | 
			
		||||
* Daniel Asztalos
 | 
			
		||||
* Florian Bruhin
 | 
			
		||||
* Jason Haugen
 | 
			
		||||
* MapleCCC
 | 
			
		||||
* Michał Górny
 | 
			
		||||
* Miro Hrončok
 | 
			
		||||
* Ran Benita
 | 
			
		||||
* Ronny Pfannschmidt
 | 
			
		||||
* Sylvain Bellemare
 | 
			
		||||
* Thomas Güttler
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Happy testing,
 | 
			
		||||
The pytest Development Team
 | 
			
		||||
| 
						 | 
				
			
			@ -28,6 +28,19 @@ with advance notice in the **Deprecations** section of releases.
 | 
			
		|||
 | 
			
		||||
.. towncrier release notes start
 | 
			
		||||
 | 
			
		||||
pytest 6.2.5 (2021-08-29)
 | 
			
		||||
=========================
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Trivial/Internal Changes
 | 
			
		||||
------------------------
 | 
			
		||||
 | 
			
		||||
- `#8494 <https://github.com/pytest-dev/pytest/issues/8494>`_: Python 3.10 is now supported.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- `#9040 <https://github.com/pytest-dev/pytest/issues/9040>`_: Enable compatibility with ``pluggy 1.0`` or later.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
pytest 6.2.4 (2021-05-04)
 | 
			
		||||
=========================
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ You can then restrict a test run to only run tests marked with ``webtest``:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v -m webtest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 4 items / 3 deselected / 1 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@ Or the inverse, running all tests except the webtest ones:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v -m "not webtest"
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 4 items / 1 deselected / 3 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -82,7 +82,7 @@ tests based on their module, class, method, or function name:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v test_server.py::TestClass::test_method
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +97,7 @@ You can also select on the class:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v test_server.py::TestClass
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -112,7 +112,7 @@ Or select multiple nodes:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v test_server.py::TestClass test_server.py::test_send_http
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -156,7 +156,7 @@ The expression matching is now case-insensitive.
 | 
			
		|||
 | 
			
		||||
    $ pytest -v -k http  # running with the above defined example module
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 4 items / 3 deselected / 1 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -171,7 +171,7 @@ And you can also run all tests except the ones that match the keyword:
 | 
			
		|||
 | 
			
		||||
    $ pytest -k "not send_http" -v
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 4 items / 1 deselected / 3 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -188,7 +188,7 @@ Or to select "http" and "quick" tests:
 | 
			
		|||
 | 
			
		||||
    $ pytest -k "http or quick" -v
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 4 items / 2 deselected / 2 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -397,7 +397,7 @@ the test needs:
 | 
			
		|||
 | 
			
		||||
    $ pytest -E stage2
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -412,7 +412,7 @@ and here is one that specifies exactly the environment needed:
 | 
			
		|||
 | 
			
		||||
    $ pytest -E stage1
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -605,7 +605,7 @@ then you will see two tests skipped and two executed tests as expected:
 | 
			
		|||
 | 
			
		||||
    $ pytest -rs # this option reports skip reasons
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items
 | 
			
		||||
| 
						 | 
				
			
			@ -622,7 +622,7 @@ Note that if you specify a platform via the marker-command line option like this
 | 
			
		|||
 | 
			
		||||
    $ pytest -m linux
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items / 3 deselected / 1 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -686,7 +686,7 @@ We can now use the ``-m option`` to select one set:
 | 
			
		|||
 | 
			
		||||
    $ pytest -m interface --tb=short
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items / 2 deselected / 2 selected
 | 
			
		||||
| 
						 | 
				
			
			@ -713,7 +713,7 @@ or to select both "event" and "interface" tests:
 | 
			
		|||
 | 
			
		||||
    $ pytest -m "interface or event" --tb=short
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items / 1 deselected / 3 selected
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ now execute the test specification:
 | 
			
		|||
 | 
			
		||||
    nonpython $ pytest test_simple.yaml
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR/nonpython
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +66,7 @@ consulted when reporting in ``verbose`` mode:
 | 
			
		|||
 | 
			
		||||
    nonpython $ pytest -v
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR/nonpython
 | 
			
		||||
    collecting ... collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -92,7 +92,7 @@ interesting to just look at the collection tree:
 | 
			
		|||
 | 
			
		||||
    nonpython $ pytest --collect-only
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR/nonpython
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -160,7 +160,7 @@ objects, they are still using the default pytest representation:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_time.py --collect-only
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 8 items
 | 
			
		||||
| 
						 | 
				
			
			@ -225,7 +225,7 @@ this is a fully self-contained example which you can run with:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_scenarios.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items
 | 
			
		||||
| 
						 | 
				
			
			@ -240,7 +240,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia
 | 
			
		|||
 | 
			
		||||
    $ pytest --collect-only test_scenarios.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items
 | 
			
		||||
| 
						 | 
				
			
			@ -319,7 +319,7 @@ Let's first see how it looks like at collection time:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_backends.py --collect-only
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -418,7 +418,7 @@ The result of this test will be successful:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v test_indirect_list.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -573,7 +573,7 @@ If you run this with reporting for skips enabled:
 | 
			
		|||
 | 
			
		||||
    $ pytest -rs test_module.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -635,7 +635,7 @@ Then run ``pytest`` with verbose mode and with only the ``basic`` marker:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v -m basic
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 24 items / 21 deselected / 3 selected
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -147,7 +147,7 @@ The test collection would look like this:
 | 
			
		|||
 | 
			
		||||
    $ pytest --collect-only
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ You can always peek at the collection tree without running tests like this:
 | 
			
		|||
 | 
			
		||||
    . $ pytest --collect-only pythoncollection.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini
 | 
			
		||||
    collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			@ -291,7 +291,7 @@ file will be left out:
 | 
			
		|||
 | 
			
		||||
    $ pytest --collect-only
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini
 | 
			
		||||
    collected 0 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:
 | 
			
		|||
 | 
			
		||||
    assertion $ pytest failure_demo.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR/assertion
 | 
			
		||||
    collected 44 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -231,7 +231,7 @@ directory with the above conftest.py:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 0 items
 | 
			
		||||
| 
						 | 
				
			
			@ -296,7 +296,7 @@ and when running it will see a skipped "slow" test:
 | 
			
		|||
 | 
			
		||||
    $ pytest -rs    # "-rs" means report details on the little 's'
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -313,7 +313,7 @@ Or run it including the ``slow`` marked test:
 | 
			
		|||
 | 
			
		||||
    $ pytest --runslow
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -457,7 +457,7 @@ which will add the string to the test header accordingly:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    project deps: mylib-1.1
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
| 
						 | 
				
			
			@ -486,7 +486,7 @@ which will add info only when run with "--v":
 | 
			
		|||
 | 
			
		||||
    $ pytest -v
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    info1: did you know that ...
 | 
			
		||||
    did you?
 | 
			
		||||
| 
						 | 
				
			
			@ -501,7 +501,7 @@ and nothing when run plainly:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 0 items
 | 
			
		||||
| 
						 | 
				
			
			@ -541,7 +541,7 @@ Now we can profile which test functions execute the slowest:
 | 
			
		|||
 | 
			
		||||
    $ pytest --durations=3
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			@ -647,7 +647,7 @@ If we run this:
 | 
			
		|||
 | 
			
		||||
    $ pytest -rx
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 4 items
 | 
			
		||||
| 
						 | 
				
			
			@ -731,7 +731,7 @@ We can run this:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 7 items
 | 
			
		||||
| 
						 | 
				
			
			@ -850,7 +850,7 @@ and run them:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_module.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -957,7 +957,7 @@ and run it:
 | 
			
		|||
 | 
			
		||||
    $ pytest -s test_module.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ Install ``pytest``
 | 
			
		|||
.. code-block:: bash
 | 
			
		||||
 | 
			
		||||
    $ pytest --version
 | 
			
		||||
    pytest 6.2.4
 | 
			
		||||
    pytest 6.2.5
 | 
			
		||||
 | 
			
		||||
.. _`simpletest`:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@ The test
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ you will see the return value of the function call:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_assert1.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -184,7 +184,7 @@ if you run this module:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_assert2.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -86,7 +86,7 @@ If you then run it with ``--lf``:
 | 
			
		|||
 | 
			
		||||
    $ pytest --lf
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -133,7 +133,7 @@ of ``FF`` and dots):
 | 
			
		|||
 | 
			
		||||
    $ pytest --ff
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 50 items
 | 
			
		||||
| 
						 | 
				
			
			@ -277,7 +277,7 @@ You can always peek at the content of the cache using the
 | 
			
		|||
 | 
			
		||||
    $ pytest --cache-show
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
| 
						 | 
				
			
			@ -358,7 +358,7 @@ filtering:
 | 
			
		|||
 | 
			
		||||
    $ pytest --cache-show example/*
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -83,7 +83,7 @@ of the failing function and hide the other one:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,7 @@ Running pytest now produces this output:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_show_warnings.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,7 @@ then you can just invoke ``pytest`` directly:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +59,7 @@ and functions, including from test modules:
 | 
			
		|||
 | 
			
		||||
    $ pytest --doctest-modules
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -432,7 +432,7 @@ marked ``smtp_connection`` fixture function.  Running the test looks like this:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_module.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -1331,7 +1331,7 @@ Running the above tests results in the following test IDs being used:
 | 
			
		|||
 | 
			
		||||
   $ pytest --collect-only
 | 
			
		||||
   =========================== test session starts ============================
 | 
			
		||||
   platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
   platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
   cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
   rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
   collected 11 items
 | 
			
		||||
| 
						 | 
				
			
			@ -1384,7 +1384,7 @@ Running this test will *skip* the invocation of ``data_set`` with value ``2``:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_fixture_marks.py -v
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			@ -1434,7 +1434,7 @@ Here we declare an ``app`` fixture which receives the previously defined
 | 
			
		|||
 | 
			
		||||
    $ pytest -v test_appsetup.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			@ -1514,7 +1514,7 @@ Let's run the tests in verbose mode and with looking at the print-output:
 | 
			
		|||
 | 
			
		||||
    $ pytest -v -s test_module.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collecting ... collected 8 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -321,7 +321,7 @@ Example:
 | 
			
		|||
 | 
			
		||||
    $ pytest -ra
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 6 items
 | 
			
		||||
| 
						 | 
				
			
			@ -379,7 +379,7 @@ More than one character can be used, so for example to only see failed and skipp
 | 
			
		|||
 | 
			
		||||
    $ pytest -rfs
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 6 items
 | 
			
		||||
| 
						 | 
				
			
			@ -415,7 +415,7 @@ captured output:
 | 
			
		|||
 | 
			
		||||
    $ pytest -rpP
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 6 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,7 +56,7 @@ them in turn:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			@ -168,7 +168,7 @@ Let's run this:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 3 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -376,7 +376,7 @@ Running it with the report-on-xfail option gives this output:
 | 
			
		|||
 | 
			
		||||
    ! pytest -rx xfail_demo.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR/example
 | 
			
		||||
    collected 7 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,7 +36,7 @@ Running this would result in a passed test except for the last
 | 
			
		|||
 | 
			
		||||
    $ pytest test_tmp_path.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -137,7 +137,7 @@ the ``self.db`` values in the traceback:
 | 
			
		|||
 | 
			
		||||
    $ pytest test_unittest_db.py
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -442,7 +442,7 @@ Additionally it is possible to copy examples for an example folder before runnin
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini
 | 
			
		||||
    collected 2 items
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ To execute it:
 | 
			
		|||
 | 
			
		||||
    $ pytest
 | 
			
		||||
    =========================== test session starts ============================
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
 | 
			
		||||
    platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1.x.y
 | 
			
		||||
    cachedir: $PYTHON_PREFIX/.pytest_cache
 | 
			
		||||
    rootdir: $REGENDOC_TMPDIR
 | 
			
		||||
    collected 1 item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue