Debian Patches

Status for torf/4.3.1-2

Patch Description Author Forwarded Bugs Origin Last update
0001-Skip-network-tests-that-fail-in-sbuild-environment.patch Skip network tests that fail in sbuild environment
These tests expect 'Name or service not known' DNS errors but get
'Connection refused' in the sbuild chroot environment. The tests
pass in normal environments but fail due to sbuild network isolation.
Nadzeya Hutsko <nadzya.info@gmail.com> not-needed 2026-01-12
0002-Restore-piece_size_min_default-in-finally-block.patch Restore piece_size_min_default in finally block
forced_piece_size restores Torrent.piece_size_min_default after the
with mock.patch() block. When a test raises, the exception propagates
through the with block and the restore line is skipped, leaving
piece_size_min_default at the test value for all subsequent tests in the
same worker process

Move the restore into a try/finally to guarantee it runs regardless of
whether an exception propagates
Nadzeya Hutsko <nadzya.info@gmail.com> no 2026-04-14
0003-Drop-timing-sensitive-sha1-count-assertion.patch Drop timing-sensitive sha1 count assertion
With Python 3.14, Reader and HasherPool threads start before collect()
is called. For 8-byte pieces all 1000 hashes land in hash_queue before
the main thread calls hash_queue.get(), so sha1_mock.call_count always
equals t.pieces regardless of whether cancellation works
Nadzeya Hutsko <nadzya.info@gmail.com> no 2026-04-14

All known versions for source package 'torf'

Links