(self)
| 1870 | assert pa.total_allocated_bytes() == old_allocated |
| 1871 | |
| 1872 | def test_header_skip_rows(self): |
| 1873 | super().test_header_skip_rows() |
| 1874 | |
| 1875 | rows = b"ab,cd\nef,gh\nij,kl\nmn,op\n" |
| 1876 | |
| 1877 | # Skipping all rows immediately results in end of iteration |
| 1878 | opts = ReadOptions() |
| 1879 | opts.skip_rows = 4 |
| 1880 | opts.column_names = ['ab', 'cd'] |
| 1881 | reader = self.open_bytes(rows, read_options=opts) |
| 1882 | with pytest.raises(StopIteration): |
| 1883 | assert reader.read_next_batch() |
| 1884 | |
| 1885 | @pytest.mark.numpy |
| 1886 | def test_skip_rows_after_names(self): |
nothing calls this directly
no test coverage detected