Skip to content

Commit 0712b60

Browse files
committed
Add test cases
1 parent 5a49c31 commit 0712b60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,11 +1100,14 @@ def test_date(self):
11001100
[
11011101
[date(2020, 1, 1), pd.Timestamp("2020-01-01")],
11021102
[pd.Timestamp("2020-01-01"), date(2020, 1, 1)],
1103+
[date(2020, 1, 1), pd.NaT],
1104+
[pd.NaT, date(2020, 1, 1)],
11031105
],
11041106
)
1105-
def test_infer_dtype_date_order_invariant(self, values):
1107+
@pytest.mark.parametrize("skipna", [True, False])
1108+
def test_infer_dtype_date_order_invariant(self, values, skipna):
11061109
# https://github.com/pandas-dev/pandas/issues/33741
1107-
result = lib.infer_dtype(values, skipna=True)
1110+
result = lib.infer_dtype(values, skipna=skipna)
11081111
assert result == "date"
11091112

11101113
def test_is_numeric_array(self):

0 commit comments

Comments
 (0)