Debian Patches

Status for python-oslo.concurrency/7.2.0-3

Patch Description Author Forwarded Bugs Origin Last update
fix-tests-i386.patch Strip long integer suffix from strings. A proper fix would be more involved so I've opened a bug upstream.

===================================================================
Corey Bryant <corey.bryant@canonical.com> no debian
py3.14_fix_multiprocessing_spawn_failure_in_FileBasedLockingTestCase.patch fix multiprocessing spawn failure in FileBasedLockingTestCase In Python 3.8+ (and now default in Debian/Python 3.14), multiprocessing
uses the 'spawn' or 'forkserver' start methods. With these methods, all
arguments to Process, including the target function, must be picklable.
.
The test
FileBasedLockingTestCase.test_interprocess_nonblocking_external_lock
was previously defining both the target function `other` and the locked
function `foo` as **local functions** inside the test method. Under
spawn/forkserver, local functions cannot be pickled, which caused
PicklingError when starting the subprocess.
.
This patch moves the process target to a module-level helper function
and defines the called function `foo` inside that helper. The helper
takes the shared multiprocessing.Value and the lock directory as
arguments, allowing the subprocess to run the same locking logic
safely.
.
No behavioral change in the test, only fixes Python 3.14 spawn
compatibility.

diff --git a/oslo_concurrency/tests/unit/test_lockutils.py b/oslo_concurrency/tests/unit/test_lockutils.py
index ec64c6b..6c9ece8 100644
Thomas Goirand <zigo@debian.org> yes 2025-12-24

All known versions for source package 'python-oslo.concurrency'

Links