Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743337 - dev-python/xarray-0.16.0 fails tests
Summary: dev-python/xarray-0.16.0 fails tests
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 737526
  Show dependency tree
 
Reported: 2020-09-18 12:59 UTC by Agostino Sarubbo
Modified: 2020-12-02 15:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.bz2 (build.log.bz2,39.81 KB, application/x-bzip-compressed-tar)
2020-09-18 12:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-18 12:59:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/xarray-0.16.0 fails tests.
Discovered on: x86 (internal ref: x86_at)
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-18 12:59:55 UTC
Created attachment 661155 [details]
build.log.bz2

build log and emerge --info
Comment 2 Louis Sautier (sbraz) gentoo-dev 2020-09-30 12:03:58 UTC
Can you try to manually run this and let me know if it fails?
pytest xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get

Is it also a problem with 0.16.1?
Comment 3 Joonas Niilola gentoo-dev 2020-10-07 16:50:52 UTC
gentoo-stable-x86 /tmp/portage/dev-python/xarray-0.16.0/work/xarray-0.16.0 #  (x86) >: pytest xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get
======================================== test session starts =========================================
platform linux -- Python 3.7.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
PyQt5 5.14.2 -- Qt runtime 5.14.2 -- Qt compiled 5.14.2
rootdir: /tmp/portage/dev-python/xarray-0.16.0/work/xarray-0.16.0, configfile: setup.cfg
plugins: hypothesis-5.24.4, qt-3.3.0
collected 1 item                                                                                     

xarray/tests/test_backends.py F                                                                [100%]

============================================== FAILURES ==============================================
______________________________ test_no_warning_from_dask_effective_get _______________________________

    @requires_scipy_or_netCDF4
    def test_no_warning_from_dask_effective_get():
        with create_tmp_file() as tmpfile:
            with pytest.warns(None) as record:
                ds = Dataset()
                ds.to_netcdf(tmpfile)
>           assert len(record) == 0
E           assert 2 == 0
E            +  where 2 = len(WarningsChecker(record=True))

xarray/tests/test_backends.py:4352: AssertionError
========================================== warnings summary ==========================================
/usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1148
  /usr/lib/python3.7/site-packages/_pytest/config/__init__.py:1148: PytestConfigWarning: Unknown config ini key: env
  
    self._warn_or_fail_if_strict("Unknown config ini key: {}\n".format(key))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================== short test summary info =======================================
FAILED xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get - assert 2 == 0
==================================== 1 failed, 1 warning in 2.09s ====================================


0.16.1 still fails the same, 
-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================== short test summary info =======================================
FAILED xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get - assert 2 == 0
== 1 failed, 3805 passed, 2977 skipped, 77 xfailed, 20 xpassed, 20014 warnings in 152.37s (0:02:32) ==
 * ERROR: dev-python/xarray-0.16.1::gentoo failed (test phase):
 *   Tests fail with python3.7
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-11-14 00:44:50 UTC
Same failure for x86.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-11-14 08:49:32 UTC
(In reply to Thomas Deutschmann from comment #4)
> Same failure for x86.

What dev-python/dask version do you have installed?