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

Method test_bom

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

Source from the content-addressed store, hash-verified

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