From 9ab4d4fb155f1f275f9df7cada7e5d357337a1ea Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 13 Sep 2026 21:19:47 +0000 Subject: [PATCH] test(anthropic-adapter): drop unnecessary sys.path.insert pytest's rootdir handling and the installed litellm package already make the imports resolve, so the sys.path.insert was a no-op that tripped the TQ003 test-quality gate. Removes the associated os/sys imports to keep the file tidy. Co-authored-by: Krrish Dholakia --- .../adapters/test_streaming_iterator_mid_stream_error.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_streaming_iterator_mid_stream_error.py b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_streaming_iterator_mid_stream_error.py index 45ec18733f7..c3aac3831f8 100644 --- a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_streaming_iterator_mid_stream_error.py +++ b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_streaming_iterator_mid_stream_error.py @@ -15,15 +15,11 @@ Anthropic ``error`` event so the stream stays valid and the client can retry. """ import json -import os -import sys from typing import List, Optional from unittest.mock import MagicMock import pytest -sys.path.insert(0, os.path.abspath("../../../../..")) - from litellm.exceptions import MidStreamFallbackError from litellm.llms.anthropic.experimental_pass_through.adapters.streaming_iterator import ( AnthropicStreamWrapper,