Skip to content

Commit 38c0877

Browse files
chore(deps): lock file maintenance (#688)
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-sdk-python). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Josef Prochazka <josef.prochazka@apify.com>
1 parent 6b1f051 commit 38c0877

3 files changed

Lines changed: 403 additions & 534 deletions

File tree

tests/unit/actor/test_actor_lifecycle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import contextlib
55
import json
66
import logging
7-
import sys
87
from datetime import datetime, timezone
98
from typing import TYPE_CHECKING, Any
109
from unittest import mock
@@ -217,7 +216,6 @@ def on_event(event_type: Event) -> Callable:
217216
assert on_system_info_count == len(on_system_info)
218217

219218

220-
@pytest.mark.skipif(sys.version_info >= (3, 13), reason='Suffers flaky behavior on Python 3.13')
221219
async def test_actor_handles_migrating_event_correctly(monkeypatch: pytest.MonkeyPatch) -> None:
222220
"""Test that Actor handles MIGRATING events correctly by emitting PERSIST_STATE."""
223221
# This should test whether when you get a MIGRATING event,
@@ -291,7 +289,9 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
291289

292290
print(persist_state_events_data)
293291

294-
# Check if the last event is from the migration
292+
# Expect last event to be is_migrating=False (persistence event on exiting EventManager)
293+
assert persist_state_events_data.pop() == EventPersistStateData(is_migrating=False)
294+
# Expect second last event to be is_migrating=True (emitted on MIGRATING event)
295295
assert persist_state_events_data.pop() == EventPersistStateData(is_migrating=True)
296296

297297
# Check if all the other events are regular persist state events

0 commit comments

Comments
 (0)