(self)
| 1775 | 'b,c': ['eh']}]) |
| 1776 | |
| 1777 | def test_no_ending_newline(self): |
| 1778 | # No \n after last line |
| 1779 | rows = b"a,b,c\n1,2,3\n4,5,6" |
| 1780 | reader = self.open_bytes(rows) |
| 1781 | expected_schema = pa.schema([('a', pa.int64()), |
| 1782 | ('b', pa.int64()), |
| 1783 | ('c', pa.int64())]) |
| 1784 | self.check_reader(reader, expected_schema, |
| 1785 | [{'a': [1, 4], |
| 1786 | 'b': [2, 5], |
| 1787 | 'c': [3, 6]}]) |
| 1788 | |
| 1789 | def test_empty_file(self): |
| 1790 | with pytest.raises(ValueError, match="Empty CSV file"): |
nothing calls this directly
no test coverage detected