Skip to content

Commit

Permalink
TST: Update sparse data generation (pandas-dev#23323)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TomAugspurger authored and Pingviinituutti committed Feb 28, 2019
1 parent d9231b5 commit b22a4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/extension/test_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b22a4ba

Please sign in to comment.