mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -197,8 +197,6 @@ def test_set_config_context_exit_without_enter() -> None:
|
||||
|
||||
def test_set_config_context_normal_usage() -> None:
|
||||
"""Test that normal usage still works correctly."""
|
||||
from langchain_core.runnables.config import set_config_context
|
||||
|
||||
config = RunnableConfig(
|
||||
tags=["test"], metadata={"key": "value"}, configurable={"param": "value"}
|
||||
)
|
||||
@@ -207,8 +205,6 @@ def test_set_config_context_normal_usage() -> None:
|
||||
with set_config_context(config) as ctx:
|
||||
assert ctx is not None
|
||||
# Context should be a contextvars.Context object
|
||||
from contextvars import Context
|
||||
|
||||
assert isinstance(ctx, Context)
|
||||
|
||||
# After exiting, we should be able to create a new context manager
|
||||
@@ -244,3 +240,4 @@ def test_set_config_context_nested_different_instances() -> None:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user