From fb6fd2bc2d84a2015c37244b7cdc2c36f0b04258 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 25 Sep 2026 18:10:22 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=20=D0=BE=D1=82=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=81=D0=BA=D0=B0=D1=87=D0=B8=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B6=D0=B4=D1=91=D1=82,=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BF=D0=BE=D1=82=D0=BE=D0=BA=20=D1=81=D0=BD?= =?UTF-8?q?=D0=B8=D0=BC=D0=B5=D1=82=20=D1=81=D0=B2=D0=BE=D0=B8=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BC=D0=B5=D1=82=D0=BA=D0=B8=20(=D0=B3=D0=BE=D0=BD?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B2=20CI=20=D0=BD=D0=B0=20Python=203.13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019LEUXMcdZo7b87mjkUsPgg --- tests/test_downloads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_downloads.py b/tests/test_downloads.py index e37941f..f0e400c 100644 --- a/tests/test_downloads.py +++ b/tests/test_downloads.py @@ -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):