Skip to content

Commit 5f5a382

Browse files
authored
TST: remove 2D tests irrelevant for pyarrow (#48550)
* TST: remove 2D tests irrelevant for pyarrow * add comment
1 parent a551f1b commit 5f5a382

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

pandas/tests/extension/base/dim2.py

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919

2020
class Dim2CompatTests(BaseExtensionTests):
21+
# Note: these are ONLY for ExtensionArray subclasses that support 2D arrays.
22+
# i.e. not for pyarrow-backed EAs.
23+
2124
def test_transpose(self, data):
2225
arr2d = data.repeat(2).reshape(-1, 2)
2326
shape = arr2d.shape

pandas/tests/extension/test_arrow.py

-14
Original file line numberDiff line numberDiff line change
@@ -319,20 +319,6 @@ def test_from_sequence_of_strings_pa_array(self, data, request):
319319
tm.assert_extension_array_equal(result, data)
320320

321321

322-
@pytest.mark.xfail(
323-
raises=NotImplementedError, reason="pyarrow.ChunkedArray backing is 1D."
324-
)
325-
class TestDim2Compat(base.Dim2CompatTests):
326-
pass
327-
328-
329-
@pytest.mark.xfail(
330-
raises=NotImplementedError, reason="pyarrow.ChunkedArray backing is 1D."
331-
)
332-
class TestNDArrayBacked2D(base.NDArrayBacked2DTests):
333-
pass
334-
335-
336322
class TestGetitemTests(base.BaseGetitemTests):
337323
@pytest.mark.xfail(
338324
reason=(

0 commit comments

Comments
 (0)