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

Method test_bom

python/pyarrow/tests/test_csv.py:817–821  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

815 assert table.num_rows == 0
816
817 def test_bom(self):
818 rows = b"\xef\xbb\xbfa,b\n1,2\n"
819 expected_data = {'a': [1], 'b': [2]}
820 table = self.read_bytes(rows)
821 assert table.to_pydict() == expected_data
822
823 def test_one_chunk(self):
824 # ARROW-7661: lack of newline at end of file should not produce

Callers

nothing calls this directly

Calls 1

read_bytesMethod · 0.95

Tested by

no test coverage detected