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