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

Function test_unsupported

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

Source from the content-addressed store, hash-verified

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