From 364f8d3792859c3a96509311efcf2a0a5a901a45 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Fri, 4 Jul 2025 09:00:53 +0200 Subject: [PATCH] chore: fix integration test test_emit_and_capture_interval_events --- tests/integration/test_actor_events.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_actor_events.py b/tests/integration/test_actor_events.py index ace6bfb7..4f75630e 100644 --- a/tests/integration/test_actor_events.py +++ b/tests/integration/test_actor_events.py @@ -16,16 +16,15 @@ async def test_emit_and_capture_interval_events( run_actor: RunActorFunction, ) -> None: async def main() -> None: + # TC003 - TYPE_CHECKING section is problematic for our integration tests. import os + from collections.abc import Callable # noqa: TC003 from datetime import datetime - from typing import TYPE_CHECKING, Any + from typing import Any from apify_shared.consts import ActorEventTypes, ApifyEnvVars from crawlee.events._types import Event, EventSystemInfoData - if TYPE_CHECKING: - from collections.abc import Callable - os.environ[ApifyEnvVars.PERSIST_STATE_INTERVAL_MILLIS] = '900' was_system_info_emitted = False