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

Function test_unsupported

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

Source from the content-addressed store, hash-verified

621
622@pytest.mark.pandas
623def test_unsupported():
624 # https://github.com/wesm/feather/issues/240
625 # serializing actual python objects
626
627 # custom python objects
628 class A:
629 pass
630
631 df = pd.DataFrame({'a': [A(), A()]})
632 _assert_error_on_write(df, ValueError)
633
634 # non-strings
635 df = pd.DataFrame({'a': ['a', 1, 2.0]})
636 _assert_error_on_write(df, TypeError)
637
638
639@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