| 2018 | f.write(contents) |
| 2019 | |
| 2020 | def test_concatenated(self): |
| 2021 | # ARROW-5974 |
| 2022 | csv_path = os.path.join(self.tmpdir, self.csv_filename) |
| 2023 | with gzip.open(csv_path, 'wb', 3) as f: |
| 2024 | f.write(b"ab,cd\nef,gh\n") |
| 2025 | with gzip.open(csv_path, 'ab', 3) as f: |
| 2026 | f.write(b"ij,kl\nmn,op\n") |
| 2027 | table = self.read_csv(csv_path) |
| 2028 | assert table.to_pydict() == { |
| 2029 | 'ab': ['ef', 'ij', 'mn'], |
| 2030 | 'cd': ['gh', 'kl', 'op'], |
| 2031 | } |
| 2032 | |
| 2033 | |
| 2034 | class TestBZ2CSVRead(BaseTestCompressedCSVRead, unittest.TestCase): |