Bug#1059354: xarray-datatree: autopkgtest regression with python-xarray 2023.12.0-1

Graham Inggs ginggs at debian.org
Sat Dec 23 10:02:31 GMT 2023


Source: xarray-datatree
Version: 0.0.13-1
Severity: serious
User: debian-ci at lists.debian.org
Usertags: regression

Hi Maintainer

Since the upload of python-xarray 2023.12.0-1, xarray-datatree's
autopkgtests fail in unstable [1].  I've copied what I hope is the
relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/x/xarray-datatree/testing/amd64/


53s ==================================== ERRORS
====================================
53s __________________ ERROR collecting tests/test_dataset_api.py
__________________
53s ImportError while importing test module
'/usr/lib/python3/dist-packages/datatree/tests/test_dataset_api.py'.
53s Hint: make sure your test modules/packages have valid Python names.
53s Traceback:
53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
53s return _bootstrap._gcd_import(name[level:], package, level)
53s /usr/lib/python3/dist-packages/datatree/tests/test_dataset_api.py:5:
in <module>
53s from datatree.testing import assert_equal
53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
53s from xarray.testing import ensure_warnings
53s E ImportError: cannot import name 'ensure_warnings' from
'xarray.testing'
(/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
53s ___________________ ERROR collecting tests/test_datatree.py
____________________
53s ImportError while importing test module
'/usr/lib/python3/dist-packages/datatree/tests/test_datatree.py'.
53s Hint: make sure your test modules/packages have valid Python names.
53s Traceback:
53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
53s return _bootstrap._gcd_import(name[level:], package, level)
53s /usr/lib/python3/dist-packages/datatree/tests/test_datatree.py:9:
in <module>
53s import datatree.testing as dtt
53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
53s from xarray.testing import ensure_warnings
53s E ImportError: cannot import name 'ensure_warnings' from
'xarray.testing'
(/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
53s ______________________ ERROR collecting tests/test_io.py
_______________________
53s ImportError while importing test module
'/usr/lib/python3/dist-packages/datatree/tests/test_io.py'.
53s Hint: make sure your test modules/packages have valid Python names.
53s Traceback:
53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
53s return _bootstrap._gcd_import(name[level:], package, level)
53s /usr/lib/python3/dist-packages/datatree/tests/test_io.py:4: in <module>
53s from datatree.testing import assert_equal
53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
53s from xarray.testing import ensure_warnings
53s E ImportError: cannot import name 'ensure_warnings' from
'xarray.testing'
(/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
53s ____________________ ERROR collecting tests/test_mapping.py
____________________
53s ImportError while importing test module
'/usr/lib/python3/dist-packages/datatree/tests/test_mapping.py'.
53s Hint: make sure your test modules/packages have valid Python names.
53s Traceback:
53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
53s return _bootstrap._gcd_import(name[level:], package, level)
53s /usr/lib/python3/dist-packages/datatree/tests/test_mapping.py:7: in <module>
53s from datatree.testing import assert_equal
53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
53s from xarray.testing import ensure_warnings
53s E ImportError: cannot import name 'ensure_warnings' from
'xarray.testing'
(/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
53s =============================== warnings summary
===============================
53s ../../../../../usr/lib/python3/dist-packages/xarray/tests/__init__.py:152
53s /usr/lib/python3/dist-packages/xarray/tests/__init__.py:152:
PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo?
You can register custom marks to avoid this warning - for details, see
https://docs.pytest.org/en/stable/how-to/mark.html
53s flaky = pytest.mark.flaky
53s
53s ../../../../../usr/lib/python3/dist-packages/xarray/tests/__init__.py:153
53s /usr/lib/python3/dist-packages/xarray/tests/__init__.py:153:
PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a
typo? You can register custom marks to avoid this warning - for
details, see https://docs.pytest.org/en/stable/how-to/mark.html
53s network = pytest.mark.network
53s
53s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
53s =========================== short test summary info
============================
53s ERROR tests/test_dataset_api.py
53s ERROR tests/test_datatree.py
53s ERROR tests/test_io.py
53s ERROR tests/test_mapping.py
53s !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection
!!!!!!!!!!!!!!!!!!!!
53s ======================== 2 warnings, 4 errors in 0.54s
=========================
53s E: pybuild pybuild:395: test: plugin pyproject failed with: exit
code=2: cd /tmp/autopkgtest-lxc.9pfjle7f/downtmp/autopkgtest_tmp/build;
python3.11 -m pytest --pyargs datatree



More information about the Pkg-grass-devel mailing list