Skip to content

Commit 421594d

Browse files
committed
(chore): remove commented out tests
1 parent f4e39da commit 421594d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

xarray/tests/test_duck_array_ops.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,23 +1108,6 @@ def test_extension_array_repr(int1):
11081108
assert repr(int1) in repr(int_duck_array)
11091109

11101110

1111-
# def test_extension_array_result_type_numeric(int1, int2):
1112-
# assert pd.Int64Dtype() == np.result_type(
1113-
# PandasExtensionArray(int1), PandasExtensionArray(int2)
1114-
# )
1115-
# assert pd.Int64Dtype() == np.result_type(
1116-
# 100, -100, PandasExtensionArray(int1), pd.NA
1117-
# )
1118-
# assert pd.Int64Dtype() == np.result_type(
1119-
# PandasExtensionArray(pd.array([1, 2, 3], dtype=pd.Int8Dtype())),
1120-
# np.array([4]),
1121-
# )
1122-
# assert pd.Float64Dtype() == np.result_type(
1123-
# np.array([1.0]),
1124-
# PandasExtensionArray(int1),
1125-
# )
1126-
1127-
11281111
def test_extension_array_result_type_categorical(categorical1, categorical2):
11291112
res = np.result_type(
11301113
PandasExtensionArray(categorical1), PandasExtensionArray(categorical2)
@@ -1140,18 +1123,6 @@ def test_extension_array_result_type_categorical(categorical1, categorical2):
11401123
)
11411124

11421125

1143-
# def test_extension_array_result_type_mixed(int1, categorical1):
1144-
# assert np.dtype("object") == np.result_type(
1145-
# PandasExtensionArray(int1), PandasExtensionArray(categorical1)
1146-
# )
1147-
# assert np.dtype("object") == np.result_type(
1148-
# np.array([1, 2, 3]), PandasExtensionArray(categorical1)
1149-
# )
1150-
# assert np.dtype("object") == np.result_type(
1151-
# PandasExtensionArray(int1), dt.datetime.now()
1152-
# )
1153-
1154-
11551126
def test_extension_array_attr():
11561127
array = pd.Categorical(["cat2", "cat1", "cat2", "cat3", "cat1"])
11571128
wrapped = PandasExtensionArray(array)

0 commit comments

Comments
 (0)