mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-10-20 15:01:44 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user