Backport patch for arch-specific failures.

This commit is contained in:
Elliott Sales de Andrade 2019-11-22 03:27:30 -05:00
parent 839d10f735
commit 9b4e60512c
2 changed files with 25 additions and 1 deletions

24
5620.patch Normal file
View File

@ -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)

View File

@ -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