mirror of https://github.com/pypa/pip
Use normal fixture instead of yield_fixture
It's been deprecated since pytest>=2.10. See https://docs.pytest.org/en/latest/historical-notes.html#pytest-yield-fixture-decorator
This commit is contained in:
parent
ab250e3e09
commit
e3a6ba6396
|
@ -0,0 +1,2 @@
|
|||
Use normal ``fixture`` instead of ``yield_fixture``.
|
||||
It's been deprecated in pytest since 2.10 version.
|
|
@ -74,7 +74,7 @@ def tmpdir_factory(request, tmpdir_factory):
|
|||
tmpdir_factory.getbasetemp().remove(ignore_errors=True)
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
@pytest.fixture
|
||||
def tmpdir(request, tmpdir):
|
||||
"""
|
||||
Return a temporary directory path object which is unique to each test
|
||||
|
@ -227,7 +227,7 @@ def install_egg_link(venv, project_name, egg_info_dir):
|
|||
fp.write(str(egg_info_dir) + '\n.')
|
||||
|
||||
|
||||
@pytest.yield_fixture(scope='session')
|
||||
@pytest.fixture(scope='session')
|
||||
def virtualenv_template(request, tmpdir_factory, pip_src,
|
||||
setuptools_install, common_wheels):
|
||||
|
||||
|
@ -268,7 +268,7 @@ def virtualenv_template(request, tmpdir_factory, pip_src,
|
|||
yield venv
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
@pytest.fixture
|
||||
def virtualenv(virtualenv_template, tmpdir, isolate):
|
||||
"""
|
||||
Return a virtual environment which is unique to each test function
|
||||
|
|
Loading…
Reference in New Issue