MCPcopy Create free account
hub / github.com/apache/arrow / test_unsupported

Function test_unsupported

python/pyarrow/tests/test_feather.py:609–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607
608@pytest.mark.pandas
609def test_unsupported():
610 # https://github.com/wesm/feather/issues/240
611 # serializing actual python objects
612
613 # custom python objects
614 class A:
615 pass
616
617 df = pd.DataFrame({'a': [A(), A()]})
618 _assert_error_on_write(df, ValueError)
619
620 # non-strings
621 df = pd.DataFrame({'a': ['a', 1, 2.0]})
622 _assert_error_on_write(df, TypeError)
623
624
625@pytest.mark.pandas

Callers

nothing calls this directly

Calls 2

_assert_error_on_writeFunction · 0.85
AClass · 0.70

Tested by

no test coverage detected