From 5f8d1c7fe8e4071d78c1e51ff2ca403360141845 Mon Sep 17 00:00:00 2001 From: ThomasNygards Date: Sat, 10 May 2025 09:20:23 +0200 Subject: [PATCH] Update workspace.py pytest.PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. Signed-off-by: ThomasNygards --- pytest-shutil/pytest_shutil/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest-shutil/pytest_shutil/workspace.py b/pytest-shutil/pytest_shutil/workspace.py index 3ca5e2c..14157be 100644 --- a/pytest-shutil/pytest_shutil/workspace.py +++ b/pytest-shutil/pytest_shutil/workspace.py @@ -14,7 +14,7 @@ log = logging.getLogger(__name__) -@pytest.yield_fixture() +@pytest.fixture def workspace(): """ Function-scoped temporary workspace that cleans up on exit.