From 46ca9de1dec5061ef258d9ddde67312b23ced952 Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Mon, 4 Apr 2022 08:03:28 +0200 Subject: [PATCH] dev-python/dask: remove unused patch(es) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger Closes: https://github.com/gentoo/gentoo/pull/24893 Signed-off-by: Michał Górny --- .../dask/files/dask-2021.10.0-warning.patch | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 dev-python/dask/files/dask-2021.10.0-warning.patch diff --git a/dev-python/dask/files/dask-2021.10.0-warning.patch b/dev-python/dask/files/dask-2021.10.0-warning.patch deleted file mode 100644 index 87c2ab318aeea..0000000000000 --- a/dev-python/dask/files/dask-2021.10.0-warning.patch +++ /dev/null @@ -1,38 +0,0 @@ -From f59293c180f846a220762701006d25655095991f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -Date: Sat, 23 Oct 2021 09:09:29 +0200 -Subject: [PATCH] Fix test_describe_empty to work without global -Werror - -Fix test_describe_empty to work when the test suite is run without -global -Werror. This is e.g. desirable for packagers who don't want -the test suite for a fixed version to suddenly start failing due to -DeprecationWarnings in dependencies that otherwise don't break -the package. - -Since the test expects either a ValueError or a RuntimeWarning, it seems -that the easiest way to assert for that is to inject the "error" filter -for the scope of the call. ---- - dask/dataframe/tests/test_dataframe.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py -index 32edb488..e0d88ba8 100644 ---- a/dask/dataframe/tests/test_dataframe.py -+++ b/dask/dataframe/tests/test_dataframe.py -@@ -570,7 +570,11 @@ def test_describe_empty(): - ) - - with pytest.raises((ValueError, RuntimeWarning)): -- ddf_len0.describe(percentiles_method="dask").compute() -+ with warnings.catch_warnings(): -+ # ensure that the warning is turned into an error since this is -+ # the easiest way to assert for exception-or-warning -+ warnings.simplefilter("error") -+ ddf_len0.describe(percentiles_method="dask").compute() - - with pytest.raises(ValueError): - ddf_nocols.describe(percentiles_method="dask").compute() --- -2.33.1 -