Тест отмены скачивания ждёт, пока поток снимет свои отметки (гонка в CI на Python 3.13)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019LEUXMcdZo7b87mjkUsPgg
Этот коммит содержится в:
Claude
2026-09-25 18:10:22 +00:00
родитель 03ca04073f
Коммит fb6fd2bc2d
+2 -1
Просмотреть файл
@@ -318,7 +318,8 @@ def test_download_cancel(data_dirs, www, logged_in):
assert done["cancelled"] is True and done["cancel_requested"] is True
assert not (data_dirs["iso"] / ".slow.iso.part").exists()
assert not (data_dirs["iso"] / "slow.iso").exists()
assert not downloads.cancel_requested(operation["id"]) and not downloads.is_live(operation["id"])
# The worker thread releases its markers right after it finishes the operation.
wait_until(lambda: not downloads.cancel_requested(operation["id"]) and not downloads.is_live(operation["id"]))
def test_cancel_flag_on_disk_is_honoured_and_not_overwritten(data_dirs, www):