Package: python3-padaos
Version: 0.1.10-3
Severity: serious
X-Debbugs-Cc: [email protected]

Dear Maintainer,

The autopkgtest tests fail for padaos because it uses the sre_constants
that were finally removed with Python 3.15.

https://docs.python.org/3/whatsnew/3.15.html#sre

//---

 29s Testing with python3.15:
 29s Traceback (most recent call last):
 29s   File "<string>", line 1, in <module>
 29s     import padaos; print(padaos)
 29s     ^^^^^^^^^^^^^
 29s   File "/usr/lib/python3/dist-packages/padaos.py", line 2, in <module>
 29s     import sre_constants
 29s ModuleNotFoundError: No module named 'sre_constants'

---//

Simply using `re.error` instead of `scre_constants.error` should be
sufficient.

Additionally, the tests are not run at build time, meaning that this was
not caught during the preparatory archive rebuilds for the transition.
Please enable the tests at build time. (Adding test_padaos.py to
debian/pybuild.testfiles is likely enough.)

//---

W: pybuild base:326: No test runner selected, defaulting to unittest, ignoring 
test discovery problems.
Use --test-unittest to explicitly select the unittest runner.
I: pybuild base:383: cd 
/build/padaos-rLvksn/padaos-0.1.10/.pybuild/cpython3_3.15_padaos/build; 
python3.15 -m unittest discover -v
D: pybuild tools:297: invoking: cd 
/build/padaos-rLvksn/padaos-0.1.10/.pybuild/cpython3_3.15_padaos/build; 
python3.15 -m unittest discover -v

----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN
W: pybuild base:326: No test runner selected, defaulting to unittest, ignoring 
test discovery problems.
Use --test-unittest to explicitly select the unittest runner.
I: pybuild base:383: cd 
/build/padaos-rLvksn/padaos-0.1.10/.pybuild/cpython3_3.14_padaos/build; 
python3.14 -m unittest discover -v
D: pybuild tools:297: invoking: cd 
/build/padaos-rLvksn/padaos-0.1.10/.pybuild/cpython3_3.14_padaos/build; 
python3.14 -m unittest discover -v

----------------------------------------------------------------------
Ran 0 tests in 0.000s

---//

regards
Stuart

Reply via email to