Merged in dirn/pytest/dirn/adjust-syntax-for-parametrize-documentat-1380671670976 (pull request #72)
Adjust syntax for parametrize documentation
This commit is contained in:
commit
8f65418d34
|
@ -183,7 +183,7 @@ Skip/xfail with parametrize
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
It is possible to apply markers like skip and xfail to individual
|
It is possible to apply markers like skip and xfail to individual
|
||||||
test instances when using parametrize:
|
test instances when using parametrize::
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ test instances when using parametrize:
|
||||||
(1, 2),
|
(1, 2),
|
||||||
pytest.mark.xfail((1, 0)),
|
pytest.mark.xfail((1, 0)),
|
||||||
pytest.mark.xfail(reason="some bug")((1, 3)),
|
pytest.mark.xfail(reason="some bug")((1, 3)),
|
||||||
(2, 3),
|
(2, 3),
|
||||||
(3, 4),
|
(3, 4),
|
||||||
(4, 5),
|
(4, 5),
|
||||||
pytest.mark.skipif("sys.version_info >= (3,0)")((10, 11)),
|
pytest.mark.skipif("sys.version_info >= (3,0)")((10, 11)),
|
||||||
|
|
Loading…
Reference in New Issue