aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-networkx/0001-add-dtype-to-pandas-test.patch
blob: ad30143f9744ea7646d2920842705594803c3108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fixes a test failure on 32-bit arches

From e41a1fddec672f7627415bf38f420b78565cee2a Mon Sep 17 00:00:00 2001
From: Ross Barnowski <rossbar@berkeley.edu>
Date: Sun, 30 Aug 2020 15:39:19 -0700
Subject: [PATCH] TST: add dtype to pandas test

---
 networkx/tests/test_convert_pandas.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networkx/tests/test_convert_pandas.py b/networkx/tests/test_convert_pandas.py
index b06b96b061..22a5e2c271 100644
--- a/networkx/tests/test_convert_pandas.py
+++ b/networkx/tests/test_convert_pandas.py
@@ -229,7 +229,7 @@ def test_from_adjacency_named(self):
             "B": {"A": 1, "B": 0, "C": 0},
             "C": {"A": 0, "B": 1, "C": 0},
         }
-        dftrue = pd.DataFrame(data)
+        dftrue = pd.DataFrame(data, dtype=np.intp)
         df = dftrue[["A", "C", "B"]]
         G = nx.from_pandas_adjacency(df, create_using=nx.DiGraph())
         df = nx.to_pandas_adjacency(G, dtype=np.intp)