From 35c45e3386f6f0e1088ecc68791c5c88e6951c8a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 12:21:26 +0000 Subject: [PATCH] Fix lint errors: remove unused imports from test files - Remove unused sys and redirect_stderr imports from test_simple_logging_fix.py - Remove unused sys and pytest imports from tests/test_custom_logger_fix.py - All lint checks now pass locally Co-Authored-By: Jo\u00E3o --- test_simple_logging_fix.py | 3 +-- tests/test_custom_logger_fix.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test_simple_logging_fix.py b/test_simple_logging_fix.py index 216982acc..8bb6706a3 100644 --- a/test_simple_logging_fix.py +++ b/test_simple_logging_fix.py @@ -3,8 +3,7 @@ Simple test to verify the logging fix works without external API calls """ import logging import io -import sys -from contextlib import redirect_stdout, redirect_stderr +from contextlib import redirect_stdout from crewai.utilities.events.utils.console_formatter import ConsoleFormatter from rich.tree import Tree diff --git a/tests/test_custom_logger_fix.py b/tests/test_custom_logger_fix.py index b6496c34c..0d1e31e64 100644 --- a/tests/test_custom_logger_fix.py +++ b/tests/test_custom_logger_fix.py @@ -3,9 +3,7 @@ Tests for issue #3197: Custom logger conflicts with Crew AI logging """ import logging import io -import sys from unittest.mock import patch -import pytest from crewai import Agent, Task, Crew from crewai.tools import BaseTool from pydantic import BaseModel, Field