Skip to content

Commit

Permalink
Backport PR #48550 on branch 1.5.x (TST: remove 2D tests irrelevant f…
Browse files Browse the repository at this point in the history
…or pyarrow) (#48554)

Backport PR #48550: TST: remove 2D tests irrelevant for pyarrow

Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
  • Loading branch information
meeseeksmachine and jbrockmendel authored Sep 15, 2022
1 parent e5ab0ab commit f51c2a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions pandas/tests/extension/base/dim2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@


class Dim2CompatTests(BaseExtensionTests):
# Note: these are ONLY for ExtensionArray subclasses that support 2D arrays.
# i.e. not for pyarrow-backed EAs.

def test_transpose(self, data):
arr2d = data.repeat(2).reshape(-1, 2)
shape = arr2d.shape
Expand Down
14 changes: 0 additions & 14 deletions pandas/tests/extension/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,20 +319,6 @@ def test_from_sequence_of_strings_pa_array(self, data, request):
tm.assert_extension_array_equal(result, data)


@pytest.mark.xfail(
raises=NotImplementedError, reason="pyarrow.ChunkedArray backing is 1D."
)
class TestDim2Compat(base.Dim2CompatTests):
pass


@pytest.mark.xfail(
raises=NotImplementedError, reason="pyarrow.ChunkedArray backing is 1D."
)
class TestNDArrayBacked2D(base.NDArrayBacked2DTests):
pass


class TestGetitemTests(base.BaseGetitemTests):
@pytest.mark.xfail(
reason=(
Expand Down

0 comments on commit f51c2a0

Please sign in to comment.