Your message dated Mon, 25 Aug 2025 05:18:48 +0000
with message-id <[email protected]>
and subject line Bug#1102620: fixed in construct 2.10.68+dfsg1-3
has caused the Debian Bug report #1102620,
regarding construct: Fix the import module failure issue during autopkgtest
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.)


-- 
1102620: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102620
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: construct
Version: 2.10.68+dfsg1-2
Severity: normal
Tags: patch

Dear Maintainer,

I'd like to submit a patch for the construct package that fixes the failure couldn't import the local modules. See the failure in https://ci.debian.net/packages/c/construct/unstable/amd64/57941369/

I can reproduce this case with the following command in the unstable distro docker image:

  $ autopkgtest . -- null

My patch updates debian/tests/control to add the setting 'PYTHONPATH=.' in the Test-Command, ensuring the source directory is included in the module search path, so that the issue of ModuleNotFoundError could be gone.

Thank you for considering this patch attached

Zhixiong

From 2283c9af89ee81d48fc6257018f50f125572362a Mon Sep 17 00:00:00 2001
From: Zhixiong Chi <[email protected]>
Date: Fri, 11 Apr 2025 05:06:23 +0000
Subject: [PATCH] set PYTHONPATH for autopkgtest to locate local modules

Some test modules failed to import local packages during autopkgtest
runs in the stable docker image, resulting in ModuleNotFoundError
(eg: tests.declarativeunittest).
After PYTHONPATH being set, the local modules in the source tree could
be visible to pytest.
This patch updates debian/tests/control to set PYTHONPATH=. in the
Test-Command, ensuring the source directory is included in the module
search path.
This allows pytest to correctly import local modules and avoids
collection-time import errors.

Signed-off-by: Zhixiong Chi <[email protected]>
---
 debian/tests/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/tests/control b/debian/tests/control
index 716af19..d2f69bb 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
-Test-Command: pytest-3 --ignore tests/gallery/ --ignore tests/deprecated_gallery/
+Test-Command: PYTHONPATH=. pytest-3 --ignore tests/gallery/ --ignore tests/deprecated_gallery/
 Depends: @builddeps@, @
-- 
2.47.1


--- End Message ---
--- Begin Message ---
Source: construct
Source-Version: 2.10.68+dfsg1-3
Done: Bo YU <[email protected]>

We believe that the bug you reported is fixed in the latest version of
construct, 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.
Bo YU <[email protected]> (supplier of updated construct 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, 25 Aug 2025 11:27:01 +0800
Source: construct
Architecture: source
Version: 2.10.68+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Bo YU <[email protected]>
Closes: 1102620
Changes:
 construct (2.10.68+dfsg1-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [Zhixiong Chi]
   * Set PYTHONPATH to fix test modules imports in autopkgtest. thanks for
     "Chi, Zhixiong" <[email protected]> (Closes: #1102620)
Checksums-Sha1:
 632a8108e6c98cd27850ee56738cd43b379d61d6 2284 construct_2.10.68+dfsg1-3.dsc
 9923dfcae4b1e5f0d70e7b6bd78fc77daef59af2 4420 
construct_2.10.68+dfsg1-3.debian.tar.xz
 b7463a59dee358429824ebe40990acddc87dfb15 7600 
construct_2.10.68+dfsg1-3_amd64.buildinfo
Checksums-Sha256:
 10d767026176d8a2a27cfc3d75d8de60ecadb5165682f1c42233ff0cd7a9ff16 2284 
construct_2.10.68+dfsg1-3.dsc
 08d9a63fb1f183b9b9014418d9a8de1aa5bd8983481305d5c6d75636684fa138 4420 
construct_2.10.68+dfsg1-3.debian.tar.xz
 1b16494d281576e1992e5187aab9a3a6356d489b080037aae5cafddaaa6af702 7600 
construct_2.10.68+dfsg1-3_amd64.buildinfo
Files:
 cf6061c121f0b704b3e9c90ffbf30dae 2284 python optional 
construct_2.10.68+dfsg1-3.dsc
 0f509f8fcad988af92ed5a33deeb76c7 4420 python optional 
construct_2.10.68+dfsg1-3.debian.tar.xz
 ce12948702daf46ab2d343d7b7856fc7 7600 python optional 
construct_2.10.68+dfsg1-3_amd64.buildinfo

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

iQIzBAEBCgAdFiEEIcmhjYVTlmab0tjp+RVP3hQ+S68FAmir73sACgkQ+RVP3hQ+
S6/AmRAAn2CopbxxU3UHRSXuBD2G8fDiXGVziKDht6CxqxHALCqeuajNCo1bWPqf
by0t+rfTppvRZEz3HykVCY5IC1alAFHHbE0cC1zDRP+hz/ecE4XltD0KKCxacTXJ
lSFfpcbk4E0F1+aC2ZUjykyrvpiXPD6KhUD+9b255iA2aJEZ9KjaWlMwQmFuXNcr
FaRuvUBiv0mimxr9W/5grtz0lfSlZgYlWnMtDTraNsdBld3iI1ipdyrk3Xuh64ZB
SKcpmfZYRVw13AobGrXko+6KEEJsT6OrIYApH4ipPg9R1l1SfDFq3BSO1B7ESW/T
PmzBeYsewkLFH/UWad5oaBwtlwZ0d5t2kQaDoNMiC/S/9gDuXFgkrnRdgNQ/lDEP
2+puZB8GM4oYFg/UDP3petp1yUMjfxnoBtnLGfty+AIth/zBhT5CeI026wclKvQp
ZJwvklge7vZpGcb2GOVq3wsgTRbqJ6BY6Wdp2XQz0ErcANCkC7nIjJ4AHK57A/za
Wu+W6+EUtogy5DCWKXSQje2TGBjGpBDXlGCfjgjiX9ASXdRyxusDHF2n4qQ1Ng/7
1w95OdxVzazAQ8/ub74hzZ3M9hKBG2t4462QrDzWpsKyMd6ySO1bdGs+Z05c587E
uLkO402glBkEqD2W+zKYQKKzGr50ztF0eLa/uolxKe8pBK77jFs=
=g1Jo
-----END PGP SIGNATURE-----

Attachment: pgp0tsNfKrleV.pgp
Description: PGP signature


--- End Message ---

Reply via email to