Bug#1056480: python-markdown2's autopkg tests fail with Python 3.12

2023-12-13 Thread Martin Manns
The issue seems to have been fixed in upstream markdown2 v2.4.11
commit commit 0fde72b: Remove deprecated imp module

Updating markdown2 to 2.4.11 may fix the issue.



Bug#1056480: python-markdown2's autopkg tests fail with Python 3.12

2023-11-22 Thread Matthias Klose

Package: src:python-markdown2
Version: 2.4.1-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-markdown2's autopkg tests fail with Python 3.12:

[...]
258s autopkgtest [18:44:18]: test python3-markdown2: 
[---
258s = test session starts 
==

258s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
258s rootdir: /tmp/autopkgtest.996gQ7/autopkgtest_tmp
258s collected 0 items / 1 error
258s
258s  ERRORS 

258s ___ ERROR collecting test/test_markdown2.py 

258s ImportError while importing test module 
'/tmp/autopkgtest.996gQ7/autopkgtest_tmp/test/test_markdown2.py'.

258s Hint: make sure your test modules/packages have valid Python names.
258s Traceback:
258s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
258s return _bootstrap._gcd_import(name[level:], package, level)
258s test/test_markdown2.py:19: in 
258s from testlib import TestError, TestSkipped, tag
258s test/testlib.py:67: in 
258s import imp
258s E   ModuleNotFoundError: No module named 'imp'
258s === short test summary info 


258s ERROR test/test_markdown2.py
258s  Interrupted: 1 error during collection 

258s === 1 error in 0.12s 
===