(self)
| 1941 | assert pa.total_allocated_bytes() == old_allocated |
| 1942 | |
| 1943 | def test_header_skip_rows(self): |
| 1944 | super().test_header_skip_rows() |
| 1945 | |
| 1946 | rows = b"ab,cd\nef,gh\nij,kl\nmn,op\n" |
| 1947 | |
| 1948 | # Skipping all rows immediately results in end of iteration |
| 1949 | opts = ReadOptions() |
| 1950 | opts.skip_rows = 4 |
| 1951 | opts.column_names = ['ab', 'cd'] |
| 1952 | reader = self.open_bytes(rows, read_options=opts) |
| 1953 | with pytest.raises(StopIteration): |
| 1954 | assert reader.read_next_batch() |
| 1955 | |
| 1956 | @pytest.mark.numpy |
| 1957 | def test_skip_rows_after_names(self): |
nothing calls this directly
no test coverage detected