Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Fix unsigned pyarrow types in SIGNED_INT_PYARROW_DTYPES #48457

Merged
merged 28 commits into from Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3d19125
Update __init__.py
gsheni Sep 8, 2022
9139253
Merge branch 'main' into patch-1
gsheni Sep 8, 2022
5828e1d
Update __init__.py
gsheni Sep 8, 2022
8c72020
Update __init__.py
gsheni Sep 8, 2022
2c6db8f
Merge branch 'main' into patch-1
gsheni Sep 8, 2022
3a37d5d
Update test_arrow.py
gsheni Sep 8, 2022
02ce612
Update test_arrow.py
gsheni Sep 8, 2022
0fd9d9f
Merge branch 'main' into patch-1
gsheni Sep 8, 2022
e12e619
Update test_arrow.py
gsheni Sep 8, 2022
e309c04
Update test_arrow.py
gsheni Sep 8, 2022
536a100
Update test_arrow.py
gsheni Sep 8, 2022
9ac3692
Update test_arrow.py
gsheni Sep 8, 2022
3aeca56
Merge branch 'main' into patch-1
gsheni Sep 9, 2022
2f4c7bc
Update test_arrow.py
gsheni Sep 9, 2022
6906af8
Merge branch 'main' into patch-1
mroeschke Sep 12, 2022
f7f3998
Merge branch 'main' into patch-1
gsheni Sep 12, 2022
59cc7ce
Merge branch 'main' into patch-1
gsheni Sep 12, 2022
1b07a30
Merge branch 'pandas-dev:main' into patch-1
gsheni Sep 12, 2022
9adf6ec
Merge branch 'pandas-dev:main' into patch-1
gsheni Oct 9, 2022
e3744aa
Update test_arrow.py
gsheni Oct 12, 2022
9f97856
Update test_arrow.py
gsheni Oct 12, 2022
759a0c4
Merge branch 'pandas-dev:main' into patch-1
gsheni Oct 12, 2022
0b05c1c
Update test_arrow.py
gsheni Oct 12, 2022
ff10c8a
Update test_arrow.py
gsheni Oct 13, 2022
5935f1b
Update test_arrow.py
gsheni Oct 14, 2022
ca5c0ef
Update test_arrow.py
gsheni Oct 14, 2022
7465c25
Update test_arrow.py
gsheni Oct 14, 2022
f09df4a
Update test_arrow.py
gsheni Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/_testing/__init__.py
Expand Up @@ -199,7 +199,7 @@
import pyarrow as pa

UNSIGNED_INT_PYARROW_DTYPES = [pa.uint8(), pa.uint16(), pa.uint32(), pa.uint64()]
SIGNED_INT_PYARROW_DTYPES = [pa.uint8(), pa.int16(), pa.int32(), pa.uint64()]
SIGNED_INT_PYARROW_DTYPES = [pa.int8(), pa.int16(), pa.int32(), pa.int64()]
ALL_INT_PYARROW_DTYPES = UNSIGNED_INT_PYARROW_DTYPES + SIGNED_INT_PYARROW_DTYPES

FLOAT_PYARROW_DTYPES = [pa.float32(), pa.float64()]
Expand Down
7 changes: 7 additions & 0 deletions pandas/tests/extension/test_arrow.py
Expand Up @@ -1619,6 +1619,13 @@ def test_add_series_with_extension_array(self, data, request):
reason=f"add_checked not implemented for {pa_dtype}",
)
)
elif pa_dtype.equals("int8"):
request.node.add_marker(
pytest.mark.xfail(
raises=pa.ArrowInvalid,
reason=f"raises on overflow for {pa_dtype}",
)
)
super().test_add_series_with_extension_array(data)


Expand Down