Replace py.path.local usages by pathlib.Path
This commit is contained in:
@@ -17,7 +17,8 @@ Example:
|
||||
|
||||
import pytest
|
||||
|
||||
@pytest.mark.parametrize("param", {"a","b"})
|
||||
|
||||
@pytest.mark.parametrize("param", {"a", "b"})
|
||||
def test_pytest_parametrize_unordered(param):
|
||||
pass
|
||||
|
||||
@@ -37,6 +38,7 @@ Some solutions:
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize("param", ["a", "b"])
|
||||
def test_pytest_parametrize_unordered(param):
|
||||
pass
|
||||
@@ -47,6 +49,7 @@ Some solutions:
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize("param", sorted({"a", "b"}))
|
||||
def test_pytest_parametrize_unordered(param):
|
||||
pass
|
||||
@@ -54,7 +57,7 @@ Some solutions:
|
||||
Output (stdout and stderr) from workers
|
||||
---------------------------------------
|
||||
|
||||
The ``-s``/``--capture=no`` option is meant to disable pytest capture, so users can then see stdout and stderr output in the terminal from tests and application code in real time.
|
||||
The ``-s``/``--capture=no`` option is meant to disable pytest capture, so users can then see stdout and stderr output in the terminal from tests and application code in real time.
|
||||
|
||||
However this option does not work with ``pytest-xdist`` because `execnet <https://github.com/pytest-dev/execnet>`__ the underlying library used for communication between master and workers, does not support transferring stdout/stderr from workers.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user