From ec1ec0dc18d7f4c6fd3b174b3f0b910737e55721 Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Tue, 4 Jan 2022 17:20:05 +0100 Subject: [PATCH] Ignore `DeprecationWarning` from `distutils.Version` classes (#823) Ignore `DeprecationWarning`s being raised in `fsspec`: ```python dask_cuda/tests/test_dask_cuda_worker.py:11: in from distributed.utils_test import loop # noqa: F401 :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module exec(co, module.__dict__) ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/distributed/utils_test.py:80: in import dask.array # register config ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/dask/array/__init__.py:3: in from . import backends, fft, lib, linalg, ma, overlap, random ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/dask/array/backends.py:13: in from .percentile import _percentile ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/dask/array/percentile.py:10: in from .core import Array ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/dask/array/core.py:30: in from fsspec import get_mapper ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/fsspec/__init__.py:12: in from .core import get_fs_token_paths, open, open_files, open_local ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/fsspec/core.py:18: in from .compression import compr ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/fsspec/compression.py:6: in from fsspec.spec import AbstractBufferedFile ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/fsspec/spec.py:92: in if pa_version and LooseVersion(pa_version) < LooseVersion("2.0"): ../../miniconda3/envs/rn-115-22.02.220103/lib/python3.8/site-packages/setuptools/_distutils/version.py:53: in __init__ warnings.warn( E DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. ``` Authors: - Peter Andreas Entschev (https://github.com/pentschev) Approvers: - Benjamin Zaitlen (https://github.com/quasiben) URL: https://github.com/rapidsai/dask-cuda/pull/823 --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index 4f5f759b5..f57ea2b73 100644 --- a/pytest.ini +++ b/pytest.ini @@ -4,3 +4,4 @@ filterwarnings = error::FutureWarning ignore::DeprecationWarning:pkg_resources ignore:Support for UCX 1.9.0 is deprecated.*:FutureWarning:ucp + ignore:distutils Version classes are deprecated.*:DeprecationWarning: