fix: remove @pytest.mark.anyio from all test files
asyncio_mode = auto in pyproject.toml makes the mark redundant. Having it alongside pytest-asyncio fixtures (db_session) causes teardown to fail with 'Task got Future attached to a different loop' because anyio creates its own event loop that conflicts with pytest-asyncio's loop during fixture cleanup.
Removed from 85 test files (decorator and pytestmark = ... forms). Fixes test doubling (PASSED then ERROR), teardown failures, and the suite-wide freeze caused by leaked asyncpg connections.
sha256:8d27b86a45e0ccaa37f75b8cffe41b0413fbd38a2bb06e02169e2a45d54cb547
sha
+30
~1944
−32
symbols
sha256:5a68f0c23ff7f0fb85e705f9628d779d30cc8a01d65581eb812cb9e16e05d20a
snapshot
+30
symbols added
~1944
symbols modified
−32
symbols removed
0
dead code introduced
Semantic Changes
2006 symbols
~
tests/test_auth_authorization_section12.py
.py
2 symbols added, 1 symbol removed, 6 symbols modified
~
tests/test_gc_background_tasks_section41.py
.py
5 symbols added, 22 symbols removed, 5 symbols modified
−
test_build_symbol_index_async_swallows_service_error
method
async_method test_build_symbol_index_async_swallows_service_error L341–347
−
test_create_task_swallows_gc_failure
method
async_method test_create_task_swallows_gc_failure L349–356
−
test_multiple_background_tasks_fire_and_forget
method
async_method test_multiple_background_tasks_fire_and_forget L358–367
−
test_run_gc_async_completes_on_real_db
method
async_method test_run_gc_async_completes_on_real_db L322–330
−
test_run_gc_async_with_orphan_completes
method
async_method test_run_gc_async_with_orphan_completes L333–339
−
test_build_symbol_async_exception_not_propagated
method
async_method test_build_symbol_async_exception_not_propagated L556–563
−
test_gc_async_exception_not_propagated_to_caller
method
async_method test_gc_async_exception_not_propagated_to_caller L546–554
−
test_run_gc_async_mocked_under_50ms
method
async_method test_run_gc_async_mocked_under_50ms L640–652
−
test_concurrent_gc_async_calls_idempotent
method
async_method test_concurrent_gc_async_calls_idempotent L420–430
+
test_sequential_gc_calls_idempotent
method
async_method test_sequential_gc_calls_idempotent L333–343
~
_HEAD
← Older
Oldest on task/remove-anyio-marks
All commits
Newer
fix: ui_issues/ui_releases paginated response unwrap, test_alemb…
sha256:a7504a7bc5c6de6c1983d9c9dca067dfbb9d04ada6831409f83c112bce3aaa0a
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:8d27b86a45e0ccaa37f75b8cffe41b0413fbd38a2bb06e02169e2a45d54cb547 --body "your comment"
No comments yet. Be the first to start the discussion.