[Debian-astro-maintainers] Bug#1082195: python-asdf FTBFS with Python 3.13
Stefano Rivera
stefanor at debian.org
Thu Sep 19 10:33:53 BST 2024
Source: python-asdf
Version: 3.4.0-1
Severity: normal
User: debian-python at lists.debian.org
Usertags: python3.13
This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.
To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.
What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html
Log snippet:
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_asdf/build
configfile: pyproject.toml
testpaths: asdf, docs
plugins: asdf-3.4.0, astropy-header-0.2.2, remotedata-0.4.1, arraydiff-0.6.1, openfiles-0.6.0, doctestplus-1.2.1, typeguard-4.3.0, filter-subpackage-0.2.0, hypothesis-6.112.0, astropy-0.11.0, mock-3.14.0, cov-5.0.0
collected 1850 items
asdf/_asdf.py . [ 0%]
asdf/_tests/_block/test_callback.py .... [ 0%]
asdf/_tests/_block/test_external.py ....... [ 0%]
asdf/_tests/_block/test_io.py ................................ [ 2%]
asdf/_tests/_block/test_key.py ............... [ 3%]
asdf/_tests/_block/test_manager.py ....... [ 3%]
asdf/_tests/_block/test_options.py ..................................... [ 5%]
................................... [ 7%]
asdf/_tests/_block/test_reader.py ...................................... [ 9%]
........................................................................ [ 13%]
............................. [ 14%]
asdf/_tests/_block/test_store.py ............... [ 15%]
asdf/_tests/_block/test_writer.py ...................................... [ 17%]
........................................................................ [ 21%]
.............................. [ 23%]
asdf/_tests/_regtests/test_1013.py . [ 23%]
asdf/_tests/_regtests/test_1334.py . [ 23%]
asdf/_tests/_regtests/test_1505.py . [ 23%]
asdf/_tests/_regtests/test_1523.py . [ 23%]
asdf/_tests/_regtests/test_1525.py .. [ 23%]
asdf/_tests/_regtests/test_1526.py . [ 23%]
asdf/_tests/_regtests/test_1530.py . [ 23%]
asdf/_tests/_regtests/test_1538.py . [ 23%]
asdf/_tests/_regtests/test_1539.py x [ 23%]
asdf/_tests/_regtests/test_1540.py . [ 23%]
asdf/_tests/_regtests/test_1541.py ............ [ 24%]
asdf/_tests/_regtests/test_1542.py . [ 24%]
asdf/_tests/_regtests/test_1553.py . [ 24%]
asdf/_tests/_regtests/test_1558.py . [ 24%]
asdf/_tests/_regtests/test_1715.py . [ 24%]
asdf/_tests/_regtests/test_1738.py . [ 24%]
asdf/_tests/commands/test_defragment.py ... [ 25%]
asdf/_tests/commands/test_diff.py ........... [ 25%]
asdf/_tests/commands/test_edit.py ...................................... [ 27%]
............................................... [ 30%]
asdf/_tests/commands/test_exploded.py .. [ 30%]
asdf/_tests/commands/test_extension.py ........... [ 30%]
asdf/_tests/commands/test_info.py . [ 30%]
asdf/_tests/commands/test_main.py .. [ 31%]
asdf/_tests/commands/test_tags.py ... [ 31%]
asdf/_tests/commands/test_to_yaml.py . [ 31%]
asdf/_tests/core/_converters/test_complex.py ........................... [ 32%]
................... [ 33%]
asdf/_tests/core/_converters/test_constant.py . [ 33%]
asdf/_tests/core/_converters/test_external_reference.py . [ 33%]
asdf/_tests/core/_converters/test_tree.py ...... [ 34%]
asdf/_tests/core/tests/test_integration.py .. [ 34%]
asdf/_tests/tags/core/tests/test_integer.py ............... [ 35%]
asdf/_tests/tags/core/tests/test_ndarray.py ............................ [ 36%]
............................... [ 38%]
asdf/_tests/test_api.py ................................................ [ 40%]
... [ 41%]
asdf/_tests/test_array_blocks.py ....................................... [ 43%]
........................................................................ [ 47%]
......................... [ 48%]
asdf/_tests/test_asdf.py .........s [ 48%]
asdf/_tests/test_block_converter.py ....... [ 49%]
asdf/_tests/test_compression.py ............ [ 50%]
asdf/_tests/test_config.py ................... [ 51%]
asdf/_tests/test_deprecated.py ...................... [ 52%]
asdf/_tests/test_entry_points.py .. [ 52%]
asdf/_tests/test_extension.py ............................ [ 53%]
asdf/_tests/test_file_format.py ........... [ 54%]
asdf/_tests/test_generic_io.py .......................ssss....ss........ [ 56%]
........s............................................................... [ 60%]
........................................................................ [ 64%]
........................................................................ [ 68%]
........................................................................ [ 72%]
........................................................................ [ 76%]
........................................................................ [ 80%]
........................................................................ [ 83%]
................. [ 84%]
asdf/_tests/test_history.py ......... [ 85%]
asdf/_tests/test_info.py ...... [ 85%]
asdf/_tests/test_integration.py ... [ 85%]
asdf/_tests/test_lazy_nodes.py ....................F.............. [ 87%]
asdf/_tests/test_reference.py .s..... [ 88%]
asdf/_tests/test_reference_files.py s [ 88%]
asdf/_tests/test_resource.py ....... [ 88%]
asdf/_tests/test_schema.py ............................................. [ 90%]
................. [ 91%]
asdf/_tests/test_search.py ................ [ 92%]
asdf/_tests/test_serialization_context.py ............... [ 93%]
asdf/_tests/test_stream.py ......... [ 94%]
asdf/_tests/test_tagged.py ............... [ 94%]
asdf/_tests/test_testing_helpers.py . [ 94%]
asdf/_tests/test_treeutil.py ... [ 95%]
asdf/_tests/test_types.py .. [ 95%]
asdf/_tests/test_util.py ............................. [ 96%]
asdf/_tests/test_versioning.py ................... [ 97%]
asdf/_tests/test_yaml.py .........x......................... [ 99%]
asdf/commands/diff.py . [ 99%]
asdf/tags/core/external_reference.py . [ 99%]
asdf/tags/core/integer.py . [ 99%]
asdf/tags/core/stream.py . [ 99%]
asdf/util.py .ss [100%]
=================================== FAILURES ===================================
____________________________ test_access_after_del _____________________________
tmp_path = PosixPath('/tmp/pytest-of-debusine-worker/pytest-0/test_access_after_del0')
def test_access_after_del(tmp_path):
fn = tmp_path / "test.asdf"
arr = np.arange(42)
tree = {"a": {"b": arr}}
asdf.AsdfFile(tree).write_to(fn)
with asdf.open(fn, lazy_tree=True) as af:
d = af["a"]
del af
> with pytest.raises(asdf.exceptions.AsdfLazyReferenceError, match="Failed to resolve"):
E Failed: DID NOT RAISE <class 'asdf.exceptions.AsdfLazyReferenceError'>
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_asdf/build/asdf/_tests/test_lazy_nodes.py:185: Failed
=========================== short test summary info ============================
SKIPPED [9] ../../../../../../usr/lib/python3/dist-packages/pytest_remotedata/plugin.py:81: need --remote-data option to run
SKIPPED [1] asdf/_tests/test_reference_files.py:55: got empty parameter set ['reference_file'], function test_reference_file at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_asdf/build/asdf/_tests/test_reference_files.py:54
SKIPPED [2] ../../../../../../usr/lib/python3/dist-packages/_pytest/doctest.py:458: all tests skipped by +SKIP option
XFAIL asdf/_tests/_regtests/test_1539.py::test_invalid_seek_and_read_from_closed_memoryio - Fix will require more major changes to generic_io
XFAIL asdf/_tests/test_yaml.py::test_python_tuple_key - pyyaml has a bug and does not support tuple keys
FAILED asdf/_tests/test_lazy_nodes.py::test_access_after_del - Failed: DID NO...
======= 1 failed, 1835 passed, 12 skipped, 2 xfailed in 62.71s (0:01:02) =======
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_asdf/build; python3.13 -m pytest
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_asdf/build; python3.12 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_asdf/build
configfile: pyproject.toml
testpaths: asdf, docs
plugins: asdf-3.4.0, astropy-header-0.2.2, remotedata-0.4.1, arraydiff-0.6.1, openfiles-0.6.0, doctestplus-1.2.1, typeguard-4.3.0, filter-subpackage-0.2.0, hypothesis-6.112.0, astropy-0.11.0, mock-3.14.0, cov-5.0.0
collected 1850 items
asdf/_asdf.py . [ 0%]
asdf/_tests/_block/test_callback.py .... [ 0%]
asdf/_tests/_block/test_external.py ....... [ 0%]
asdf/_tests/_block/test_io.py ................................ [ 2%]
asdf/_tests/_block/test_key.py ............... [ 3%]
asdf/_tests/_block/test_manager.py ....... [ 3%]
asdf/_tests/_block/test_options.py ..................................... [ 5%]
................................... [ 7%]
asdf/_tests/_block/test_reader.py ...................................... [ 9%]
........................................................................ [ 13%]
............................. [ 14%]
asdf/_tests/_block/test_store.py ............... [ 15%]
asdf/_tests/_block/test_writer.py ...................................... [ 17%]
........................................................................ [ 21%]
.............................. [ 23%]
asdf/_tests/_regtests/test_1013.py . [ 23%]
asdf/_tests/_regtests/test_1334.py . [ 23%]
asdf/_tests/_regtests/test_1505.py . [ 23%]
asdf/_tests/_regtests/test_1523.py . [ 23%]
asdf/_tests/_regtests/test_1525.py .. [ 23%]
asdf/_tests/_regtests/test_1526.py . [ 23%]
asdf/_tests/_regtests/test_1530.py . [ 23%]
asdf/_tests/_regtests/test_1538.py . [ 23%]
asdf/_tests/_regtests/test_1539.py x [ 23%]
asdf/_tests/_regtests/test_1540.py . [ 23%]
asdf/_tests/_regtests/test_1541.py ............ [ 24%]
asdf/_tests/_regtests/test_1542.py . [ 24%]
asdf/_tests/_regtests/test_1553.py . [ 24%]
asdf/_tests/_regtests/test_1558.py . [ 24%]
asdf/_tests/_regtests/test_1715.py . [ 24%]
asdf/_tests/_regtests/test_1738.py . [ 24%]
asdf/_tests/commands/test_defragment.py ... [ 25%]
asdf/_tests/commands/test_diff.py ........... [ 25%]
asdf/_tests/commands/test_edit.py ...................................... [ 27%]
............................................... [ 30%]
asdf/_tests/commands/test_exploded.py .. [ 30%]
asdf/_tests/commands/test_extension.py ........... [ 30%]
asdf/_tests/commands/test_info.py . [ 30%]
asdf/_tests/commands/test_main.py .. [ 31%]
asdf/_tests/commands/test_tags.py ... [ 31%]
asdf/_tests/commands/test_to_yaml.py . [ 31%]
asdf/_tests/core/_converters/test_complex.py ........................... [ 32%]
................... [ 33%]
asdf/_tests/core/_converters/test_constant.py . [ 33%]
asdf/_tests/core/_converters/test_external_reference.py . [ 33%]
asdf/_tests/core/_converters/test_tree.py ...... [ 34%]
asdf/_tests/core/tests/test_integration.py .. [ 34%]
asdf/_tests/tags/core/tests/test_integer.py ............... [ 35%]
asdf/_tests/tags/core/tests/test_ndarray.py ............................ [ 36%]
............................... [ 38%]
asdf/_tests/test_api.py ................................................ [ 40%]
... [ 41%]
asdf/_tests/test_array_blocks.py ....................................... [ 43%]
........................................................................ [ 47%]
......................... [ 48%]
asdf/_tests/test_asdf.py .........s [ 48%]
asdf/_tests/test_block_converter.py ....... [ 49%]
asdf/_tests/test_compression.py ............ [ 50%]
asdf/_tests/test_config.py ................... [ 51%]
asdf/_tests/test_deprecated.py ...................... [ 52%]
asdf/_tests/test_entry_points.py .. [ 52%]
asdf/_tests/test_extension.py ............................ [ 53%]
asdf/_tests/test_file_format.py ........... [ 54%]
asdf/_tests/test_generic_io.py .......................ssss....ss........ [ 56%]
........s............................................................... [ 60%]
........................................................................ [ 64%]
........................................................................ [ 68%]
........................................................................ [ 72%]
........................................................................ [ 76%]
........................................................................ [ 80%]
........................................................................ [ 83%]
................. [ 84%]
asdf/_tests/test_history.py ......... [ 85%]
asdf/_tests/test_info.py ...... [ 85%]
asdf/_tests/test_integration.py ... [ 85%]
asdf/_tests/test_lazy_nodes.py ................................... [ 87%]
asdf/_tests/test_reference.py .s..... [ 88%]
asdf/_tests/test_reference_files.py s [ 88%]
asdf/_tests/test_resource.py ....... [ 88%]
asdf/_tests/test_schema.py ............................................. [ 90%]
................. [ 91%]
asdf/_tests/test_search.py ................ [ 92%]
asdf/_tests/test_serialization_context.py ............... [ 93%]
asdf/_tests/test_stream.py ......... [ 94%]
asdf/_tests/test_tagged.py ............... [ 94%]
asdf/_tests/test_testing_helpers.py . [ 94%]
asdf/_tests/test_treeutil.py ... [ 95%]
asdf/_tests/test_types.py .. [ 95%]
asdf/_tests/test_util.py ............................. [ 96%]
asdf/_tests/test_versioning.py ................... [ 97%]
asdf/_tests/test_yaml.py .........x......................... [ 99%]
asdf/commands/diff.py . [ 99%]
asdf/tags/core/external_reference.py . [ 99%]
asdf/tags/core/integer.py . [ 99%]
asdf/tags/core/stream.py . [ 99%]
asdf/util.py .ss [100%]
=========================== short test summary info ============================
SKIPPED [9] ../../../../../../usr/lib/python3/dist-packages/pytest_remotedata/plugin.py:81: need --remote-data option to run
SKIPPED [1] asdf/_tests/test_reference_files.py:55: got empty parameter set ['reference_file'], function test_reference_file at /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_asdf/build/asdf/_tests/test_reference_files.py:54
SKIPPED [2] ../../../../../../usr/lib/python3/dist-packages/_pytest/doctest.py:458: all tests skipped by +SKIP option
XFAIL asdf/_tests/_regtests/test_1539.py::test_invalid_seek_and_read_from_closed_memoryio - Fix will require more major changes to generic_io
XFAIL asdf/_tests/test_yaml.py::test_python_tuple_key - pyyaml has a bug and does not support tuple keys
============ 1836 passed, 12 skipped, 2 xfailed in 63.34s (0:01:03) ============
I: pybuild pybuild:334: rm -f /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_asdf/build/*.asdf
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-18T22:14:08Z
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/780948/
This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.
Thanks,
Stefano
More information about the Debian-astro-maintainers
mailing list