From f534f0ec591e1bec3e2febaa8bd2e7ff7541b3bf Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Wed, 24 Oct 2018 14:40:28 -0500 Subject: [PATCH] TST: Update sparse data generation There's a spurious failure on master when the first is randomly chosen to be 0, since type(arr.fill_value) doesn't match arr.dtype.type --- pandas/tests/extension/test_sparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/extension/test_sparse.py b/pandas/tests/extension/test_sparse.py index ca0435141c2e2..6946da6fdc36d 100644 --- a/pandas/tests/extension/test_sparse.py +++ b/pandas/tests/extension/test_sparse.py @@ -12,7 +12,7 @@ def make_data(fill_value): if np.isnan(fill_value): data = np.random.uniform(size=100) else: - data = np.random.randint(0, 100, size=100) + data = np.random.randint(1, 100, size=100) data[2::3] = fill_value return data