summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_develop.py
diff options
context:
space:
mode:
authorChih-Hsuan Yen <yan12125@gmail.com>2020-12-13 18:01:50 +0800
committerChih-Hsuan Yen <yan12125@gmail.com>2020-12-13 18:27:23 +0800
commit701eee9e53dcbfe200bef46420da420052699e68 (patch)
tree57dcd5a8b082014dd8e0b42ac3fa60f120a7b1da /setuptools/tests/test_develop.py
parentd368be2b5be8676ba8a3d55045b45b55090f6982 (diff)
downloadpython-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_develop.py')
-rw-r--r--setuptools/tests/test_develop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py
index 9854420e..2766da2f 100644
--- a/setuptools/tests/test_develop.py
+++ b/setuptools/tests/test_develop.py
@@ -31,7 +31,7 @@ INIT_PY = """print "foo"
"""
-@pytest.yield_fixture
+@pytest.fixture
def temp_user(monkeypatch):
with contexts.tempdir() as user_base:
with contexts.tempdir() as user_site:
@@ -40,7 +40,7 @@ def temp_user(monkeypatch):
yield
-@pytest.yield_fixture
+@pytest.fixture
def test_env(tmpdir, temp_user):
target = tmpdir
foo = target.mkdir('foo')