8
8
import pytest
9
9
10
10
from pandas ._libs .tslibs import NaT
11
- from pandas .compat import is_platform_windows
12
11
13
12
from pandas .core .dtypes .cast import maybe_promote
14
13
from pandas .core .dtypes .common import (
@@ -406,7 +405,6 @@ def test_maybe_promote_any_with_datetime64(
406
405
_check_promote (dtype , fill_value , expected_dtype , exp_val_for_scalar )
407
406
408
407
409
- @pytest .mark .xfail (reason = "Fails to upcast to object" )
410
408
def test_maybe_promote_datetimetz_with_any_numpy_dtype (
411
409
tz_aware_fixture , any_numpy_dtype_reduced
412
410
):
@@ -427,11 +425,6 @@ def test_maybe_promote_datetimetz_with_datetimetz(tz_aware_fixture, tz_aware_fix
427
425
dtype = DatetimeTZDtype (tz = tz_aware_fixture )
428
426
fill_dtype = DatetimeTZDtype (tz = tz_aware_fixture2 )
429
427
430
- from dateutil .tz import tzlocal
431
-
432
- if is_platform_windows () and tz_aware_fixture2 == tzlocal ():
433
- pytest .xfail ("Cannot process fill_value with this dtype, see GH 24310" )
434
-
435
428
# create array of given dtype; casts "1" to correct dtype
436
429
fill_value = pd .Series ([10 ** 9 ], dtype = fill_dtype )[0 ]
437
430
@@ -441,7 +434,6 @@ def test_maybe_promote_datetimetz_with_datetimetz(tz_aware_fixture, tz_aware_fix
441
434
expected_dtype = dtype
442
435
else :
443
436
expected_dtype = np .dtype (object )
444
- pytest .xfail ("fails to cast to object" )
445
437
446
438
_check_promote (dtype , fill_value , expected_dtype , exp_val_for_scalar )
447
439
0 commit comments