| 1948 | f.write(contents) |
| 1949 | |
| 1950 | def test_concatenated(self): |
| 1951 | # ARROW-5974 |
| 1952 | csv_path = os.path.join(self.tmpdir, self.csv_filename) |
| 1953 | with gzip.open(csv_path, 'wb', 3) as f: |
| 1954 | f.write(b"ab,cd\nef,gh\n") |
| 1955 | with gzip.open(csv_path, 'ab', 3) as f: |
| 1956 | f.write(b"ij,kl\nmn,op\n") |
| 1957 | table = self.read_csv(csv_path) |
| 1958 | assert table.to_pydict() == { |
| 1959 | 'ab': ['ef', 'ij', 'mn'], |
| 1960 | 'cd': ['gh', 'kl', 'op'], |
| 1961 | } |
| 1962 | |
| 1963 | |
| 1964 | class TestBZ2CSVRead(BaseTestCompressedCSVRead, unittest.TestCase): |