Re: hashlib and sha384

Andrey Rakhmatullin <[email protected]> Sun, 31 May 2026 19:35:21 +0500
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
--bodDKlNHat2NDfU1
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I can now repdocue and somewhat minimize it but I didn't find the reason.

How to reproduce it:=20
1. Get python-xmlsec 1.3.17-2 (currently in incoming).
2. Add B-D: libxmlsec1-dev (=3D 1.3.11-1) (currently in experimental, so=20
adjust your build command accordingly).
3. Add B-D: python3-pytest-arraydiff.
4. Build.

None of python3-pytest-arraydiff is actually needed for this, you can=20
replace all of /usr/lib/python3/dist-packages/pytest_arraydiff/plugin.py=20
with "import hashlib".

And the failing test is test_init_shutdown_module in tests/test_xmlsec.py=
=20
which does "xmlsec.init(); xmlsec.shutdown()" which (especially the=20
comment in it) sounds like it *could* be problematic, whatever that=20
actually does, if you want to use OpenSSL after it.

So it looks like three things are required: libxmlsec1-dev from experimenta=
l,
importing hashlib early enough, and running that test. This doesn't answer=
=20
what to do though.

--=20
WBR, wRAR

--bodDKlNHat2NDfU1
Content-Type: application/pgp-signature; name="signature.asc"

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

iQJhBAABCgBLFiEEtf6ieDcfC1EgtGkao+OWn23e7IYFAmocRyktFIAAAAAAFQAP
cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEKPjlp9t3uyG
AwIP/2BDJaAVoV4scMC2DaMFghBiyd2o3KeRy3h+t9h3f7M0eYFQJYStGhpiDEL6
gpfEzHqrDtvi4231/P2R+t5qwFrL93ZnINjwfumtT1x147qUdcvUjzpMEdufyg1V
PsUH/ifKOxuq8wf4CIfhgstWakV4bsSDSxbOyrOfctOlgFXupwmt/8PYGWWwtBmN
Ez/CEs5a4WrY7Ob2sSPzHAAZ6WRkoKoHc6HCEOYSNmcZbsxGd3j19UsAkQkHIzeK
P+Mg7yGjImWYE/9zMoNABTsKus4kAGqAIoWCOZ7rhls/YfFGXTdfKJom0DQ1nDF+
WCM3iftQKybG3OhpCf3jSp4E2pdpiu0XQfcPlbaoM1/MENWDeCMWcyVnxFgWGTBO
oh+VB/xMCY1fAMQDHYCjCWebK9P8JwJTrgAP/PSr151dFLkVkiKH4PoGj+AsOWM8
eKe15+AlSGNiPVGOQAuKYYwk6Ig5rAaXdf7aL9ZtK3Bm95lM8CjWet+n+eC1XZ+t
htts8RKXOirIgpMbtZ34iN/5s3cN9Z/mPd2hhmUpqt6a4DDll3VTauXbDbjWelF1
8HPAkikSATclIo3gEqYuIPB/ZcyuoAEqFmB6+kqLIS4wZdvOHlp24VF/Xx8RLkuR
fNtDuaBfU290N185aA3C0oxZqAr4a8GHNnq3+w4kTQzwibml
=LgJS
-----END PGP SIGNATURE-----

--bodDKlNHat2NDfU1--