aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch
new file mode 100644
index 000000000000..8051cfec39ae
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pandas/fix-tests.patch
@@ -0,0 +1,12 @@
+diff --color -ur a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py
+--- a/pandas/tests/arrays/sparse/test_array.py 2020-12-07 12:42:08.000000000 +0100
++++ b/pandas/tests/arrays/sparse/test_array.py 2021-02-27 21:48:16.483903149 +0100
+@@ -1188,7 +1188,7 @@
+ row = [0, 3, 1, 0]
+ col = [0, 3, 1, 2]
+ data = [4, 5, 7, 9]
+- sp_array = scipy.sparse.coo_matrix((data, (row, col)))
++ sp_array = scipy.sparse.coo_matrix((data, (row, col)), dtype="int")
+ result = pd.Series.sparse.from_coo(sp_array)
+
+ index = pd.MultiIndex.from_arrays([[0, 0, 1, 3], [0, 2, 1, 3]])