Skip to content

Commit d49452a

Browse files
committed
Add xfail test for astype("uint") on arrow arrays
1 parent 9006160 commit d49452a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/astype_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ def test_astype_numeric_fails(nullable_ints, dtype):
7171
nullable_ints.x.astype(dtype).tolist()
7272

7373

74+
def test_astype_uint_string(df_factory_arrow, df_factory_arrow_chunked, df_factory_numpy):
75+
# The string "uint" works for numpy but not arrow
76+
x = [1, 2, None]
77+
df_factory_numpy(x=x).x.astype("uint").tolist()
78+
with pytest.raises(ValueError):
79+
df_factory_arrow(x=x).x.astype("uint").tolist()
80+
with pytest.raises(ValueError):
81+
df_factory_arrow_chunked(x=x).x.astype("uint").tolist()
82+
7483

7584
def test_astype_dtype():
7685
df = vaex.from_arrays(x=[0, 1])

0 commit comments

Comments
 (0)