Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dask/files/
Date: Mon, 04 Apr 2022 07:26:58
Message-Id: 1649057212.46ca9de1dec5061ef258d9ddde67312b23ced952.mgorny@gentoo
1 commit: 46ca9de1dec5061ef258d9ddde67312b23ced952
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Mon Apr 4 06:03:28 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 07:26:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ca9de1
7
8 dev-python/dask: remove unused patch(es)
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/24893
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-python/dask/files/dask-2021.10.0-warning.patch | 38 ----------------------
16 1 file changed, 38 deletions(-)
17
18 diff --git a/dev-python/dask/files/dask-2021.10.0-warning.patch b/dev-python/dask/files/dask-2021.10.0-warning.patch
19 deleted file mode 100644
20 index 87c2ab318aee..000000000000
21 --- a/dev-python/dask/files/dask-2021.10.0-warning.patch
22 +++ /dev/null
23 @@ -1,38 +0,0 @@
24 -From f59293c180f846a220762701006d25655095991f Mon Sep 17 00:00:00 2001
25 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
26 -Date: Sat, 23 Oct 2021 09:09:29 +0200
27 -Subject: [PATCH] Fix test_describe_empty to work without global -Werror
28 -
29 -Fix test_describe_empty to work when the test suite is run without
30 -global -Werror. This is e.g. desirable for packagers who don't want
31 -the test suite for a fixed version to suddenly start failing due to
32 -DeprecationWarnings in dependencies that otherwise don't break
33 -the package.
34 -
35 -Since the test expects either a ValueError or a RuntimeWarning, it seems
36 -that the easiest way to assert for that is to inject the "error" filter
37 -for the scope of the call.
38 ----
39 - dask/dataframe/tests/test_dataframe.py | 6 +++++-
40 - 1 file changed, 5 insertions(+), 1 deletion(-)
41 -
42 -diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py
43 -index 32edb488..e0d88ba8 100644
44 ---- a/dask/dataframe/tests/test_dataframe.py
45 -+++ b/dask/dataframe/tests/test_dataframe.py
46 -@@ -570,7 +570,11 @@ def test_describe_empty():
47 - )
48 -
49 - with pytest.raises((ValueError, RuntimeWarning)):
50 -- ddf_len0.describe(percentiles_method="dask").compute()
51 -+ with warnings.catch_warnings():
52 -+ # ensure that the warning is turned into an error since this is
53 -+ # the easiest way to assert for exception-or-warning
54 -+ warnings.simplefilter("error")
55 -+ ddf_len0.describe(percentiles_method="dask").compute()
56 -
57 - with pytest.raises(ValueError):
58 - ddf_nocols.describe(percentiles_method="dask").compute()
59 ---
60 -2.33.1
61 -