(self)
| 1594 | os.remove(filename) |
| 1595 | |
| 1596 | def test_init_with_filename(self): |
| 1597 | with tempfile.NamedTemporaryFile(delete=False) as tmp_f: |
| 1598 | filename = pathlib.Path(tmp_f.name) |
| 1599 | |
| 1600 | with ZstdFile(filename) as f: |
| 1601 | pass |
| 1602 | with ZstdFile(filename, "w") as f: |
| 1603 | pass |
| 1604 | with ZstdFile(filename, "a") as f: |
| 1605 | pass |
| 1606 | |
| 1607 | os.remove(filename) |
| 1608 | |
| 1609 | def test_init_mode(self): |
| 1610 | bi = io.BytesIO() |