Skip to content

Commit

Permalink
parametrize test
Browse files Browse the repository at this point in the history
  • Loading branch information
realead committed Jul 30, 2021
1 parent 5dcbb2a commit 9e3ecd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/tests/indexing/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,12 @@ def test_no_reference_cycle(self):
del df
assert wr() is None

def test_label_indexing_on_nan(self):
def test_label_indexing_on_nan(self, nulls_fixture):
# GH 32431
df = Series([1, "{1,2}", 1, None])
df = Series([1, "{1,2}", 1, nulls_fixture])
vc = df.value_counts(dropna=False)
result1 = vc.loc[None]
result2 = vc[None]
result1 = vc.loc[nulls_fixture]
result2 = vc[nulls_fixture]

expected = 1
assert result1 == expected
Expand Down

0 comments on commit 9e3ecd2

Please sign in to comment.