Skip to content

Commit 5547497

Browse files
committed
parametrize test
1 parent bee18ee commit 5547497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/indexing/test_indexing.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,12 @@ def test_no_reference_cycle(self):
770770
del df
771771
assert wr() is None
772772

773-
def test_label_indexing_on_nan(self):
773+
def test_label_indexing_on_nan(self, nulls_fixture):
774774
# GH 32431
775-
df = Series([1, "{1,2}", 1, None])
775+
df = Series([1, "{1,2}", 1, nulls_fixture])
776776
vc = df.value_counts(dropna=False)
777-
result1 = vc.loc[None]
778-
result2 = vc[None]
777+
result1 = vc.loc[nulls_fixture]
778+
result2 = vc[nulls_fixture]
779779

780780
expected = 1
781781
assert result1 == expected

0 commit comments

Comments
 (0)