@@ -47,7 +47,7 @@ You can then restrict a test run to only run tests marked with ``webtest``:
4747
4848 $ pytest -v -m webtest
4949 =========================== test session starts ============================
50- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
50+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
5151 cachedir: .pytest_cache
5252 rootdir: /home/sweet/project
5353 collecting ... collected 4 items / 3 deselected / 1 selected
@@ -62,7 +62,7 @@ Or the inverse, running all tests except the webtest ones:
6262
6363 $ pytest -v -m "not webtest"
6464 =========================== test session starts ============================
65- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
65+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
6666 cachedir: .pytest_cache
6767 rootdir: /home/sweet/project
6868 collecting ... collected 4 items / 1 deselected / 3 selected
@@ -82,7 +82,7 @@ keyword arguments, e.g. to run only tests marked with ``device`` and the specifi
8282
8383 $ pytest -v -m "device(serial='123')"
8484 =========================== test session starts ============================
85- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
85+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
8686 cachedir: .pytest_cache
8787 rootdir: /home/sweet/project
8888 collecting ... collected 4 items / 3 deselected / 1 selected
@@ -106,7 +106,7 @@ tests based on their module, class, method, or function name:
106106
107107 $ pytest -v test_server.py::TestClass::test_method
108108 =========================== test session starts ============================
109- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
109+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
110110 cachedir: .pytest_cache
111111 rootdir: /home/sweet/project
112112 collecting ... collected 1 item
@@ -121,7 +121,7 @@ You can also select on the class:
121121
122122 $ pytest -v test_server.py::TestClass
123123 =========================== test session starts ============================
124- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
124+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
125125 cachedir: .pytest_cache
126126 rootdir: /home/sweet/project
127127 collecting ... collected 1 item
@@ -136,7 +136,7 @@ Or select multiple nodes:
136136
137137 $ pytest -v test_server.py::TestClass test_server.py::test_send_http
138138 =========================== test session starts ============================
139- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
139+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
140140 cachedir: .pytest_cache
141141 rootdir: /home/sweet/project
142142 collecting ... collected 2 items
@@ -180,7 +180,7 @@ The expression matching is now case-insensitive.
180180
181181 $ pytest -v -k http # running with the above defined example module
182182 =========================== test session starts ============================
183- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
183+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
184184 cachedir: .pytest_cache
185185 rootdir: /home/sweet/project
186186 collecting ... collected 4 items / 3 deselected / 1 selected
@@ -195,7 +195,7 @@ And you can also run all tests except the ones that match the keyword:
195195
196196 $ pytest -k "not send_http" -v
197197 =========================== test session starts ============================
198- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
198+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
199199 cachedir: .pytest_cache
200200 rootdir: /home/sweet/project
201201 collecting ... collected 4 items / 1 deselected / 3 selected
@@ -212,7 +212,7 @@ Or to select "http" and "quick" tests:
212212
213213 $ pytest -k "http or quick" -v
214214 =========================== test session starts ============================
215- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
215+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y -- $PYTHON_PREFIX/bin/python
216216 cachedir: .pytest_cache
217217 rootdir: /home/sweet/project
218218 collecting ... collected 4 items / 2 deselected / 2 selected
@@ -418,7 +418,7 @@ the test needs:
418418
419419 $ pytest -E stage2
420420 =========================== test session starts ============================
421- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
421+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
422422 rootdir: /home/sweet/project
423423 collected 1 item
424424
@@ -432,7 +432,7 @@ and here is one that specifies exactly the environment needed:
432432
433433 $ pytest -E stage1
434434 =========================== test session starts ============================
435- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
435+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
436436 rootdir: /home/sweet/project
437437 collected 1 item
438438
@@ -625,7 +625,7 @@ then you will see two tests skipped and two executed tests as expected:
625625
626626 $ pytest -rs # this option reports skip reasons
627627 =========================== test session starts ============================
628- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
628+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
629629 rootdir: /home/sweet/project
630630 collected 4 items
631631
@@ -641,7 +641,7 @@ Note that if you specify a platform via the marker-command line option like this
641641
642642 $ pytest -m linux
643643 =========================== test session starts ============================
644- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
644+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
645645 rootdir: /home/sweet/project
646646 collected 4 items / 3 deselected / 1 selected
647647
@@ -704,7 +704,7 @@ We can now use the ``-m option`` to select one set:
704704
705705 $ pytest -m interface --tb=short
706706 =========================== test session starts ============================
707- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
707+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
708708 rootdir: /home/sweet/project
709709 collected 4 items / 2 deselected / 2 selected
710710
@@ -730,7 +730,7 @@ or to select both "event" and "interface" tests:
730730
731731 $ pytest -m "interface or event" --tb=short
732732 =========================== test session starts ============================
733- platform linux -- Python 3.x.y, pytest-8 .x.y, pluggy-1.x.y
733+ platform linux -- Python 3.x.y, pytest-9 .x.y, pluggy-1.x.y
734734 rootdir: /home/sweet/project
735735 collected 4 items / 1 deselected / 3 selected
736736
0 commit comments