Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected], [email protected]
Control: affects -1 + src:python-iniparse
User: [email protected]
Usertags: pu

[ Reason ]
Fix Bug #1137634. Random build failure due to flaky test.

[ Impact ]
Package fails to build randomly in some systems.

[ Tests ]
I've checked that the package builds reliably again.

[ Risks ]
Very low. No real code changes. One test has been modified
to avoid a race condition.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
Fix race condition in test_multiprocessing.

[ Other info ]
Package is already uploaded.
diff -Nru python-iniparse-0.5.1/debian/changelog 
python-iniparse-0.5.1/debian/changelog
--- python-iniparse-0.5.1/debian/changelog      2024-12-11 16:27:00.000000000 
+0100
+++ python-iniparse-0.5.1/debian/changelog      2026-06-07 22:15:00.000000000 
+0200
@@ -1,3 +1,10 @@
+python-iniparse (0.5.1-1+deb13u1) trixie; urgency=medium
+
+  * Team upload.
+  * Fix race condition in test_multiprocessing. Closes: #1137634.
+
+ -- Santiago Vila <[email protected]>  Sun, 07 Jun 2026 22:15:00 +0200
+
 python-iniparse (0.5.1-1) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-iniparse-0.5.1/debian/patches/fix-race-condition.patch 
python-iniparse-0.5.1/debian/patches/fix-race-condition.patch
--- python-iniparse-0.5.1/debian/patches/fix-race-condition.patch       
1970-01-01 01:00:00.000000000 +0100
+++ python-iniparse-0.5.1/debian/patches/fix-race-condition.patch       
2026-06-07 20:01:00.000000000 +0200
@@ -0,0 +1,15 @@
+From: Santiago Vila <[email protected]>
+Subject: Fix race condition in test_multiprocessing
+Bug-Debian: https://bugs.debian.org/1137634
+
+--- a/tests/test_multiprocessing.py
++++ b/tests/test_multiprocessing.py
+@@ -16,7 +16,7 @@
+ 
+     def test_queue(self):
+         def getxy(_q, _w):
+-            _cfg = _q.get_nowait()
++            _cfg = _q.get(timeout=1)
+             _w.put(_cfg.x.y)
+         cfg = ini.INIConfig()
+         cfg.x.y = '42'
diff -Nru python-iniparse-0.5.1/debian/patches/series 
python-iniparse-0.5.1/debian/patches/series
--- python-iniparse-0.5.1/debian/patches/series 1970-01-01 01:00:00.000000000 
+0100
+++ python-iniparse-0.5.1/debian/patches/series 2026-06-07 20:00:00.000000000 
+0200
@@ -0,0 +1 @@
+fix-race-condition.patch

Reply via email to