Skip to content

Commit 4ed35bf

Browse files
committed
Add test for mixed object dtype
Signed-off-by: Vasily Litvinov <fam1ly.n4me@yandex.ru>
1 parent d73558a commit 4ed35bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/exchange/test_impl.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,10 @@ def test_string():
167167
assert col.null_count == 1
168168
assert col.dtype[0] == DtypeKind.STRING
169169
assert col.describe_null == (ColumnNullType.USE_BYTEMASK, 0)
170+
171+
172+
def test_nonstring_object():
173+
df = pd.DataFrame({"A": ["a", 10, 1.0, ()]})
174+
col = df.__dataframe__().get_column_by_name("A")
175+
with pytest.raises(NotImplementedError, match="not supported yet"):
176+
col.dtype

0 commit comments

Comments
 (0)