@@ -450,7 +450,7 @@ for your particular platform, you could use the following plugin::
450450 import sys
451451 import pytest
452452
453- ALL = set("darwin linux2 win32".split())
453+ ALL = set("darwin linux win32".split())
454454
455455 def pytest_runtest_setup(item):
456456 if isinstance(item, item.Function):
@@ -470,7 +470,7 @@ Let's do a little test file to show how this looks like::
470470 def test_if_apple_is_evil():
471471 pass
472472
473- @pytest.mark.linux2
473+ @pytest.mark.linux
474474 def test_if_linux_works():
475475 pass
476476
@@ -481,23 +481,23 @@ Let's do a little test file to show how this looks like::
481481 def test_runs_everywhere():
482482 pass
483483
484- then you will see two test skipped and two executed tests as expected::
484+ then you will see two tests skipped and two executed tests as expected::
485485
486486 $ pytest -rs # this option reports skip reasons
487487 ======= test session starts ========
488488 platform linux -- Python 3.5.2, pytest-3.0.5, py-1.4.31, pluggy-0.4.0
489489 rootdir: $REGENDOC_TMPDIR, inifile:
490490 collected 4 items
491491
492- test_plat.py sss .
492+ test_plat.py s.s .
493493 ======= short test summary info ========
494- SKIP [3 ] $REGENDOC_TMPDIR/conftest.py:12: cannot run on platform linux
494+ SKIP [2 ] $REGENDOC_TMPDIR/conftest.py:12: cannot run on platform linux
495495
496- ======= 1 passed, 3 skipped in 0.12 seconds ========
496+ ======= 2 passed, 2 skipped in 0.12 seconds ========
497497
498498Note that if you specify a platform via the marker-command line option like this::
499499
500- $ pytest -m linux2
500+ $ pytest -m linux
501501 ======= test session starts ========
502502 platform linux -- Python 3.5.2, pytest-3.0.5, py-1.4.31, pluggy-0.4.0
503503 rootdir: $REGENDOC_TMPDIR, inifile:
@@ -506,7 +506,7 @@ Note that if you specify a platform via the marker-command line option like this
506506 test_plat.py s
507507
508508 ======= 3 tests deselected ========
509- ======= 1 skipped , 3 deselected in 0.12 seconds ========
509+ ======= 1 passed , 3 deselected in 0.12 seconds ========
510510
511511then the unmarked-tests will not be run. It is thus a way to restrict the run to the specific tests.
512512
0 commit comments