diff --git a/tests/unittests/agents/test_resumable_llm_agent.py b/tests/unittests/agents/test_resumable_llm_agent.py index 36e84dfc..4d958186 100644 --- a/tests/unittests/agents/test_resumable_llm_agent.py +++ b/tests/unittests/agents/test_resumable_llm_agent.py @@ -100,7 +100,6 @@ class TestResumableLlmAgent: """Test suite for resumable LlmAgent.""" @pytest.fixture - @pytest.mark.asyncio async def resumable_invocation_context(self): """Creates an invocation context for the specified agent.""" diff --git a/tests/unittests/cli/test_fast_api.py b/tests/unittests/cli/test_fast_api.py index f0b6c89e..2d7b9472 100755 --- a/tests/unittests/cli/test_fast_api.py +++ b/tests/unittests/cli/test_fast_api.py @@ -410,11 +410,10 @@ async def create_test_eval_set( @pytest.fixture -@pytest.mark.skipif( - sys.version_info < (3, 10), reason="A2A requires Python 3.10+" -) def temp_agents_dir_with_a2a(): """Create a temporary agents directory with A2A agent configurations for testing.""" + if sys.version_info < (3, 10): + pytest.skip("A2A requires Python 3.10+") with tempfile.TemporaryDirectory() as temp_dir: # Create test agent directory agent_dir = Path(temp_dir) / "test_a2a_agent" @@ -448,9 +447,6 @@ class TestA2AAgent(BaseAgent): @pytest.fixture -@pytest.mark.skipif( - sys.version_info < (3, 10), reason="A2A requires Python 3.10+" -) def test_app_with_a2a( mock_session_service, mock_artifact_service, @@ -461,6 +457,8 @@ def test_app_with_a2a( temp_agents_dir_with_a2a, ): """Create a TestClient for the FastAPI app with A2A enabled.""" + if sys.version_info < (3, 10): + pytest.skip("A2A requires Python 3.10+") # Mock A2A related classes with (