Package: src:pytest
Version: 7.4.3-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12
pytest's autopkg tests fail with Python 3.12:
[...]
383s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
383s rootdir: /tmp/autopkgtest.JW6zuv/build.aar/src
383s configfile: pyproject.toml
383s plugins: hypothesis-6.88.4
383s collected 3176 items / 1 error / 4 deselected / 3172 selected
383s
383s ==================================== ERRORS
====================================
383s __________________ ERROR collecting testing/test_junitxml.py
___________________
383s /usr/lib/python3/dist-packages/_pytest/runner.py:341: in from_call
383s result: Optional[TResult] = func()
383s /usr/lib/python3/dist-packages/_pytest/runner.py:372: in <lambda>
383s call = CallInfo.from_call(lambda: list(collector.collect()),
"collect")
383s /usr/lib/python3/dist-packages/_pytest/python.py:531: in collect
383s self._inject_setup_module_fixture()
383s /usr/lib/python3/dist-packages/_pytest/python.py:545: in
_inject_setup_module_fixture
383s self.obj, ("setUpModule", "setup_module")
383s /usr/lib/python3/dist-packages/_pytest/python.py:310: in obj
383s self._obj = obj = self._getobj()
383s /usr/lib/python3/dist-packages/_pytest/python.py:528: in _getobj
383s return self._importtestmodule()
383s /usr/lib/python3/dist-packages/_pytest/python.py:617: in
_importtestmodule
383s mod = import_path(self.path, mode=importmode,
root=self.config.rootpath)
383s /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
383s importlib.import_module(module_name)
383s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
383s return _bootstrap._gcd_import(name[level:], package, level)
383s <frozen importlib._bootstrap>:1381: in _gcd_import
383s ???
383s <frozen importlib._bootstrap>:1354: in _find_and_load
383s ???
383s <frozen importlib._bootstrap>:1325: in _find_and_load_unlocked
383s ???
383s <frozen importlib._bootstrap>:929: in _load_unlocked
383s ???
383s /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:186: in
exec_module
383s exec(co, module.__dict__)
383s ../../../testing/test_junitxml.py:13: in <module>
383s import xmlschema
383s /usr/lib/python3/dist-packages/xmlschema/__init__.py:20: in <module>
383s from .dataobjects import DataElement, DataElementConverter,
DataBindingConverter
383s /usr/lib/python3/dist-packages/xmlschema/dataobjects.py:27: in <module>
383s from . import validators
383s /usr/lib/python3/dist-packages/xmlschema/validators/__init__.py:38:
in <module>
383s from .schemas import XMLSchemaMeta, XMLSchemaBase, XMLSchema,
XMLSchema10, XMLSchema11
383s
/usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:2137: in
<module>
383s class XMLSchema10(XMLSchemaBase):
383s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:148:
in __new__
383s meta_schema =
meta_schema_class.create_meta_schema(meta_schema_file)
383s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:763:
in create_meta_schema
383s meta_schema = meta_schema_class(source, XSD_NAMESPACE,
global_maps=global_maps,
383s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:357:
in __init__
383s self.source = XMLResource(source, base_url, allow, defuse, timeout)
383s /usr/lib/python3/dist-packages/xmlschema/resources.py:511: in __init__
383s self.parse(source, lazy)
383s /usr/lib/python3/dist-packages/xmlschema/resources.py:746: in parse
383s url = normalize_url(source, self._base_url)
383s /usr/lib/python3/dist-packages/xmlschema/resources.py:188: in
normalize_url
383s path = _PurePath.from_uri(url)
383s /usr/lib/python3/dist-packages/xmlschema/resources.py:109: in from_uri
383s return cls(uri)
383s /usr/lib/python3/dist-packages/xmlschema/resources.py:98: in __new__
383s return cast('_PurePath', cls._from_parts(args))
383s E AttributeError: type object '_PurePosixPath' has no attribute
'_from_parts'. Did you mean: '_load_parts'?
383s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection
!!!!!!!!!!!!!!!!!!!!
383s ======================== 4 deselected, 1 error in 3.65s
========================