From eeb81b5341868565f3fe13acfa0d869c42a0a331 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 25 Oct 2018 06:06:31 -0500 Subject: [PATCH] TST: Update sparse data generation (#23323) 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