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

Method test_no_ending_newline

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

Source from the content-addressed store, hash-verified

1453 assert table_with_default.schema.field('b').type == pa.float64()
1454
1455 def test_no_ending_newline(self):
1456 # No \n after last line
1457 rows = b"a,b,c\n1,2,3\n4,5,6"
1458 table = self.read_bytes(rows)
1459 assert table.to_pydict() == {
1460 'a': [1, 4],
1461 'b': [2, 5],
1462 'c': [3, 6],
1463 }
1464
1465 def test_trivial(self):
1466 # A bit pointless, but at least it shouldn't crash

Callers

nothing calls this directly

Calls 1

read_bytesMethod · 0.95

Tested by

no test coverage detected