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 tm9k1 committed Nov 19, 2018
1 parent 0710001 commit eeb81b5
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 eeb81b5

Please sign in to comment.