From 9b4e60512ce72ae724858dd598fa525818fb0abc Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Nov 22 2019 08:27:30 +0000 Subject: Backport patch for arch-specific failures. --- diff --git a/5620.patch b/5620.patch new file mode 100644 index 0000000..ff80724 --- /dev/null +++ b/5620.patch @@ -0,0 +1,24 @@ +From 71f433d951a074658b11468ea3255570a8cb8023 Mon Sep 17 00:00:00 2001 +From: ossdev07 <39188636+ossdev07@users.noreply.github.com> +Date: Thu, 21 Nov 2019 12:29:57 +0530 +Subject: [PATCH] [dask] : Change the test_repartition_npartitions test series + data + +Change the test_repartition_npartitions test series input from [10, 20, 30, 40, 50, 60] to [1, 2, 3, 4, 5, 6] in order for it to pass on aarch64 architecture(non-intel), which was failing with previous values due to floating point calculations and precision. +--- + dask/dataframe/tests/test_dataframe.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py +index 7cb4e4d1a8..2ca635f9bc 100644 +--- a/dask/dataframe/tests/test_dataframe.py ++++ b/dask/dataframe/tests/test_dataframe.py +@@ -1734,7 +1734,7 @@ def test_repartition_on_pandas_dataframe(): + def test_repartition_npartitions(use_index, n, k, dtype, transform): + df = pd.DataFrame( + {"x": [1, 2, 3, 4, 5, 6] * 10, "y": list("abdabd") * 10}, +- index=pd.Series([10, 20, 30, 40, 50, 60] * 10, dtype=dtype), ++ index=pd.Series([1, 2, 3, 4, 5, 6] * 10, dtype=dtype), + ) + df = transform(df) + a = dd.from_pandas(df, npartitions=n, sort=use_index) diff --git a/python-dask.spec b/python-dask.spec index e921aa9..e9fec19 100644 --- a/python-dask.spec +++ b/python-dask.spec @@ -14,7 +14,7 @@ License: BSD URL: http://github.com/dask/dask/ Source0: %pypi_source # https://github.com/dask/dask/issues/4561 -Patch0001: 0001-XFail-partitioning-test-on-some-arches.patch +Patch0001: https://github.com/dask/dask/pull/5620.patch BuildArch: noarch