diff options
| author | Chih-Hsuan Yen <yan12125@gmail.com> | 2020-12-13 18:01:50 +0800 |
|---|---|---|
| committer | Chih-Hsuan Yen <yan12125@gmail.com> | 2020-12-13 18:27:23 +0800 |
| commit | 701eee9e53dcbfe200bef46420da420052699e68 (patch) | |
| tree | 57dcd5a8b082014dd8e0b42ac3fa60f120a7b1da /setuptools/tests/test_virtualenv.py | |
| parent | d368be2b5be8676ba8a3d55045b45b55090f6982 (diff) | |
| download | python-setuptools-git-701eee9e53dcbfe200bef46420da420052699e68.tar.gz | |
Fix tests with pytest 6.2
The latest pytest deprecates pytest.yield_fixture in favor of
pytest.fixture [1]. The changelog [2] says that both are the same.
[1] https://github.com/pytest-dev/pytest/pull/7988
[2] https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12
Diffstat (limited to 'setuptools/tests/test_virtualenv.py')
| -rw-r--r-- | setuptools/tests/test_virtualenv.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index e7b100fb..21dea5bb 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -5,7 +5,6 @@ import sys import pathlib import pytest -from pytest import yield_fixture from pytest_fixture_config import yield_requires_config import pytest_virtualenv @@ -29,7 +28,7 @@ def pytest_virtualenv_works(virtualenv): @yield_requires_config(pytest_virtualenv.CONFIG, ['virtualenv_executable']) -@yield_fixture(scope='function') +@pytest.fixture(scope='function') def bare_virtualenv(): """ Bare virtualenv (no pip/setuptools/wheel). """ |
