From 23e832ada666a18d07ec093b6915d3237e8fabd9 Mon Sep 17 00:00:00 2001 From: byhow <25713361+byhow@users.noreply.github.com> Date: Sat, 10 Oct 2026 00:51:21 -0700 Subject: [PATCH] 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. --- libs/langgraph/tests/test_interruption.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/langgraph/tests/test_interruption.py b/libs/langgraph/tests/test_interruption.py index 98ee579aa..b404523b9 100644 --- a/libs/langgraph/tests/test_interruption.py +++ b/libs/langgraph/tests/test_interruption.py @@ -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: