From 4b8c53e1beb9dee63f1a570c132ff3563228cd51 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 14 Feb 2026 10:52:10 -0600 Subject: [PATCH 1/3] tests/fixtures(fix[pytester_asyncio]): Set asyncio loop scope in isolated pytester ini why: pytest-asyncio warns when asyncio_default_fixture_loop_scope is unset in pytester-isolated runs, even when the repo-level pyproject sets it. what: - Add asyncio_mode=auto to the generated pytester pytest.ini - Add asyncio_default_fixture_loop_scope=function to the generated pytester pytest.ini - Keep test behavior unchanged while removing the deprecation warning --- tests/test_fixtures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py index 6459ac7c7..cd7d3641a 100644 --- a/tests/test_fixtures.py +++ b/tests/test_fixtures.py @@ -120,6 +120,8 @@ def test_pytester_git_commit_in_isolated_run( """ [pytest] addopts=-vv +asyncio_mode=auto +asyncio_default_fixture_loop_scope=function """.strip(), ), ) From 91da8425e13d3244587fdde2b79781e6e98ff975 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 14 Feb 2026 10:54:23 -0600 Subject: [PATCH 2/3] ai(rules[AGENTS]) Fix git commit message to not mention slash --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 22353af3c..89b1c38d0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -279,7 +279,7 @@ Common commit types: Examples: ``` -cli/add(feat[add_repo]) Add support for custom remote URLs +cli(add[repo]) Add support for custom remote URLs why: Enable users to specify alternative remote URLs for repositories what: From e97775771b12f93e62a12509ee7803747bd0b1d7 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 14 Feb 2026 10:58:30 -0600 Subject: [PATCH 3/3] docs(CHANGES): Note pytest-asyncio warning fix in tests why: Keep unreleased changelog aligned with merged work so release notes include test stability updates. what: - Add an unreleased Tests entry for PR #515 - Document the pytester isolated-run fix for pytest-asyncio deprecation warning --- CHANGES | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 41f17df27..b203566d4 100644 --- a/CHANGES +++ b/CHANGES @@ -33,6 +33,11 @@ $ uvx --from 'vcspull' --prerelease allow vcspull _Notes on upcoming releases will be added here_ +### Tests + +- Fix `pytest-asyncio` deprecation warning in isolated `pytester` runs by + setting `asyncio_default_fixture_loop_scope` explicitly (#515) + ## vcspull v1.54.0 (2026-02-08) ### Breaking changes