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

Method test_bom

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

Source from the content-addressed store, hash-verified

830 assert table.num_rows == 0
831
832 def test_bom(self):
833 rows = b"\xef\xbb\xbfa,b\n1,2\n"
834 expected_data = {'a': [1], 'b': [2]}
835 table = self.read_bytes(rows)
836 assert table.to_pydict() == expected_data
837
838 def test_one_chunk(self):
839 # 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