We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2cb87 commit 7137ddaCopy full SHA for 7137dda
pandas/tests/dtypes/cast/test_promote.py
@@ -332,12 +332,12 @@ def test_maybe_promote_any_with_datetime64(
332
dtype = np.dtype(any_numpy_dtype_reduced)
333
boxed, box_dtype = box # read from parametrized fixture
334
335
- if boxed:
+ if boxed and box_dtype is None:
336
if is_datetime64_dtype(dtype):
337
- if box_dtype is None and not is_datetime64_dtype(type(fill_value)):
+ if not is_datetime64_dtype(type(fill_value)):
338
pytest.xfail("falsely upcasts to object")
339
else:
340
- if box_dtype is None and is_datetime64_dtype(type(fill_value)):
+ if is_datetime64_dtype(type(fill_value)):
341
pytest.xfail("mix of lack of upcasting, resp. wrong missing value")
342
343
# special case for box_dtype
0 commit comments