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