Your message dated Thu, 05 Nov 2026 19:49:19 +0000
with message-id <[email protected]>
and subject line Bug#1146871: fixed in monty 2026.10.21-1
has caused the Debian Bug report #1146871,
regarding monty: FTBFS against python 3.15rc2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1146871: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146871
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:monty
Version: 2026.2.18-3
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that monty fails to build from source [1].

The problem happens because `val = dct.popitem()` now pops the last
element instead of the first one. This is due to a bugfix in UserDict
which was popping FIFO instead of LIFO. [2]

There's one confusing factor here, which is that in the latest release
(not yet in Debian), upstream moved to inherit from dict instead of
UserDict, and dict always had this LIFO behavior, so I'm not sure how it
is that these tests aren't failing upstream regardless of the Python
version.

In any case, it's possible to workaround this issue by allowing the
problematic test to take either the first or the last element. The test
only cares that the element gets removed from the dictionary when
popping it, so that should be fine.

I have created a patch with this workaround and applied it in the
sandbox [3] to be able to build the packages that depend on monty,
please consider applying the patch to support the upcoming 3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4453093/
[2]: https://github.com/python/cpython/issues/147957
[3]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Index: monty/tests/test_collections.py
===================================================================
--- monty.orig/tests/test_collections.py
+++ monty/tests/test_collections.py
@@ -93,7 +93,11 @@ class TestControlledDict:
         assert val == 2 and "b" not in dct
 
         val = dct.popitem()
-        assert val == ("c", 3) and "c" not in dct
+        # popitem may be LIFO or FIFO depending on the Python version, we don't
+        # actually care for the test, so just check that it returned a valid
+        # item and that it was removed from the dictionary
+        assert (val == ("c", 3) and "c" not in dct) or (val == ("d", 4) and "d"
+                                                        not in dct)
 
         dct.clear()
         assert dct == {}

--- End Message ---
--- Begin Message ---
Source: monty
Source-Version: 2026.10.21-1
Done: Pieter Lenaerts <[email protected]>

We believe that the bug you reported is fixed in the latest version of
monty, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pieter Lenaerts <[email protected]> (supplier of updated monty package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 02 Nov 2026 14:01:40 +0100
Source: monty
Architecture: source
Version: 2026.10.21-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Pieter Lenaerts <[email protected]>
Closes: 1146871
Changes:
 monty (2026.10.21-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release.
   * d/patches: rebase, mark as Forwarded: not-needed where relevant.
   * d/patches: add popitem is lifo or fifo patch (Closes: 1146871), forwarded.
   * d/patches: add patch to use python3 instead of python command in
     test_subprocess.py. Forward not needed.
   * d/control: bump debhelper-compat to 14, remove obsolete substvars, add
     build deps, add nochecks, nodocs, add dh-sequences
   * d/control: remove obsolete "--withs" and add nodoc filter
   * d/salsa-ci.yml: don't do useless tests for pure python, add build profiles 
tests
Checksums-Sha1:
 dd76ee9bbc66cd7cf407c7d1f82dff3ba3ecfacd 2781 monty_2026.10.21-1.dsc
 44513daef3692acf8d0d267202ac47e798676a86 304377 monty_2026.10.21.orig.tar.gz
 8459ce9981bcda4bc1cc6469a99a70f1829db43f 8124 monty_2026.10.21-1.debian.tar.xz
 a7e9729525e414c33085ad375e6aa8a07a0fc116 11115 
monty_2026.10.21-1_amd64.buildinfo
Checksums-Sha256:
 1f658fb6a97bee0a08d4a70b6c2db2bd6c39179e4e86013d6348be23277693c8 2781 
monty_2026.10.21-1.dsc
 5cfc6fad90348255784f7ffa998f8016ed4043cd0e3d88c6f3374d3fb0746ee2 304377 
monty_2026.10.21.orig.tar.gz
 96ce41f4ac48396af79f15ab50696abca17fe109c2d160eeced6367963093bba 8124 
monty_2026.10.21-1.debian.tar.xz
 ce37e89bd4e37a221c93d80cd45f124f26b19d2a0ec430833b864669b95efacd 11115 
monty_2026.10.21-1_amd64.buildinfo
Files:
 7127b12753f85321314569b43d6a2972 2781 python optional monty_2026.10.21-1.dsc
 12695c1529be1f1d4aba3c52b1497829 304377 python optional 
monty_2026.10.21.orig.tar.gz
 069bf049835cb6d03f7d8e9935f11ef4 8124 python optional 
monty_2026.10.21-1.debian.tar.xz
 c3efcbfdc36cbd2028a83fa6bc1d3ce7 11115 python optional 
monty_2026.10.21-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEE3lnVbvHK7ir4q61+p3sXeEcY/EFAmrs2DoSHGVhbWFudUBk
ZWJpYW4ub3JnAAoJEPqd7F3hHGPxNJAQAIcaQY31EFIB8JLyiCKeWivolDKeofxt
QbGHS1V+90DF5UsgV8ewLzFdU6MB7kMYj2AgeHsZpDubmdix0p+Zxk8ugRx5FBTU
Yga6qDfLhbCAqQmhcSR75Mh+HK0JdVvVh+lIik8MRWgN1eKAXWTjDMsuKyxaLKgk
ocgrEH2xWLr9+Xv638UeAhXXYAuxPNAyFApqQeyCofTLxETguAPjL0/xM0Or94Gk
SmQkIz/aovmfZAwqY6MxHyFSKuyxuyLhB45vPEWz1lQ3ZAKCdIuRBDBtyp3PTfTN
CT8EwRmyWtJQ2smll+QG+/xpgGtvKy9cUqiOilE3OPK0zbWHlJPvLFfD6p6c6hJl
3fO+MRkoBU7HOGI/EO1DXpE0m797DykbZX6MmE9tFf46C8QRzQ1+BZ1mCelFUu3e
HxTz3Ct/ZoFRitOfqVOV9MbabNYr+hOuYEsIeigZPA1+diUyoUodlmp8mPrS7fBm
S4WGa+Sa3zQ71esNlU2igoFT1FhVya/BJz4SN+nguoxyOgNCZ7BmM6UCQiF3YNko
f/EDf52QIsMA9NVxvgPOzMl6kLq5/EfmAR80OH0Oqm2YLpDRtXRB+yB8IeoG4MJD
vmeQlP65ESWjUXgpndR8S4jBW28qLQ5JhKdhpATYF0uHZ/2lDsAdy3bDVuRkbNFv
oWGTRoDGtbi4
=s2sm
-----END PGP SIGNATURE-----

Attachment: pgpwEGSMjGFfi.pgp
Description: PGP signature


--- End Message ---

Reply via email to