#1149247 python-tavern: FTBFS against python 3.15rc2

#1149247#5
Date:
2026-09-28 20:00:54 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-tavern fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4865847/

 From the log, the error seems to be:

_____________
TestPykwalifyExtension.test_validate_schema_correct ______________
tests/unit/test_helpers.py:302: in
test_validate_schema_correct
     validate_pykwalify(
tavern/helpers.py:118: in validate_pykwalify
     verify_pykwalify(to_verify, schema)
tavern/_core/schema/files.py:106: in verify_pykwalify
     verifier = core.Core(
/usr/lib/python3/dist-packages/pykwalify/core.py:153: in
__init__
     self._load_extensions()
/usr/lib/python3/dist-packages/pykwalify/core.py:173: in
_load_extensions

self.loaded_extensions.append(SourceFileLoader("",
f).load_module())

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: 'SourceFileLoader' object has no attribute
'load_module'. Did you mean '.exec_module' instead of
'.load_module'?

Please note that while we ran into this error during the rebuild against
Python 3.15, that doesn't mean that the root cause for the failure is
necessarily the new Python 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.

Cheers,
Marga