test(langgraph): skip the invalid-resume sibling test before Python 3.11

Async nodes can't call interrupt() on Python 3.10, which doesn't carry the run config into async tasks. Skip it there like the other async interrupt tests.
This commit is contained in:
byhow
2026-10-10 00:51:21 -07:00
parent 5568c30500
commit 23e832ada6
@@ -1,5 +1,6 @@
import asyncio
import operator
import sys
from dataclasses import dataclass
from typing import Annotated, Any
@@ -255,6 +256,10 @@ def test_interrupt_response_schema_invalid_resume_after_earlier_interrupt(
}
@pytest.mark.skipif(
sys.version_info < (3, 11),
reason="Python 3.11+ is required for async contextvars support",
)
async def test_invalid_resume_lets_other_answered_tasks_finish(
async_checkpointer: BaseCheckpointSaver,
) -> None: