@@ -2287,16 +2287,18 @@ def test_check_dtype_empty_numeric_column(self, dtype):
2287
2287
2288
2288
assert data .b .dtype == dtype
2289
2289
2290
- # TODO(ArrayManager) astype to bytes dtypes does not yet give object dtype
2291
- @td .skip_array_manager_not_yet_implemented
2292
2290
@pytest .mark .parametrize (
2293
2291
"dtype" , tm .STRING_DTYPES + tm .BYTES_DTYPES + tm .OBJECT_DTYPES
2294
2292
)
2295
- def test_check_dtype_empty_string_column (self , dtype ):
2293
+ def test_check_dtype_empty_string_column (self , request , dtype , using_array_manager ):
2296
2294
# GH24386: Ensure dtypes are set correctly for an empty DataFrame.
2297
2295
# Empty DataFrame is generated via dictionary data with non-overlapping columns.
2298
2296
data = DataFrame ({"a" : [1 , 2 ]}, columns = ["b" ], dtype = dtype )
2299
2297
2298
+ if using_array_manager and dtype in tm .BYTES_DTYPES :
2299
+ # TODO(ArrayManager) astype to bytes dtypes does not yet give object dtype
2300
+ td .mark_array_manager_not_yet_implemented (request )
2301
+
2300
2302
assert data .b .dtype .name == "object"
2301
2303
2302
2304
def test_to_frame_with_falsey_names (self ):
@@ -2466,8 +2468,20 @@ def test_constructor_list_str_na(self, string_dtype):
2466
2468
tm .assert_frame_equal (result , expected )
2467
2469
2468
2470
@pytest .mark .parametrize ("copy" , [False , True ])
2469
- @td .skip_array_manager_not_yet_implemented
2470
- def test_dict_nocopy (self , copy , any_numeric_ea_dtype , any_numpy_dtype ):
2471
+ def test_dict_nocopy (
2472
+ self , request , copy , any_numeric_ea_dtype , any_numpy_dtype , using_array_manager
2473
+ ):
2474
+ if using_array_manager and not (
2475
+ (any_numpy_dtype in (tm .STRING_DTYPES + tm .BYTES_DTYPES ))
2476
+ or (
2477
+ any_numpy_dtype
2478
+ in (tm .DATETIME64_DTYPES + tm .TIMEDELTA64_DTYPES + tm .BOOL_DTYPES )
2479
+ and copy
2480
+ )
2481
+ ):
2482
+ # TODO(ArrayManager) properly honor copy keyword for dict input
2483
+ td .mark_array_manager_not_yet_implemented (request )
2484
+
2471
2485
a = np .array ([1 , 2 ], dtype = any_numpy_dtype )
2472
2486
b = np .array ([3 , 4 ], dtype = any_numpy_dtype )
2473
2487
if b .dtype .kind in ["S" , "U" ]:
0 commit comments