Skip to content

Commit bad5be3

Browse files
Daniel SaxtonDaniel Saxton
Daniel Saxton
authored and
Daniel Saxton
committed
Parametrize test
1 parent 1a71728 commit bad5be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/arrays/categorical/test_constructors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ def test_constructor_with_categorical_categories(self):
458458
result = Categorical(["a", "b"], categories=CategoricalIndex(["a", "b", "c"]))
459459
tm.assert_categorical_equal(result, expected)
460460

461-
def test_construction_with_na(self):
461+
def test_construction_with_null(self, nulls_fixture):
462462
# https://github.com/pandas-dev/pandas/issues/31927
463-
values = ["a", pd.NA]
463+
values = ["a", nulls_fixture]
464464
result = Categorical(np.array(values, dtype=object))
465465
expected = Categorical(values)
466466

0 commit comments

Comments
 (0)