Skip to content

Commit 3669711

Browse files
authoredJun 7, 2022
TST: xfail unit test on min build (#47259)
1 parent aa305f3 commit 3669711

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎pandas/compat/numpy/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
np_version_gte1p22 = _nlv >= Version("1.22")
1212
is_numpy_dev = _nlv.dev is not None
1313
_min_numpy_ver = "1.19.5"
14+
is_numpy_min = _nlv == Version(_min_numpy_ver)
1415

1516
if is_numpy_dev or not np_version_under1p22:
1617
np_percentile_argname = "method"

‎pandas/tests/indexing/test_iloc.py

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import numpy as np
1111
import pytest
1212

13+
from pandas.compat.numpy import is_numpy_min
1314
import pandas.util._test_decorators as td
1415

1516
from pandas import (
@@ -1198,6 +1199,7 @@ def test_iloc_getitem_int_single_ea_block_view(self):
11981199
arr[2] = arr[-1]
11991200
assert ser[0] == arr[-1]
12001201

1202+
@pytest.mark.xfail(is_numpy_min, reason="Column A gets coerced to integer type")
12011203
def test_iloc_setitem_multicolumn_to_datetime(self, using_array_manager):
12021204

12031205
# GH#20511

0 commit comments

Comments
 (0)
Please sign in to comment.