(self)
| 1607 | os.remove(filename) |
| 1608 | |
| 1609 | def test_init_mode(self): |
| 1610 | bi = io.BytesIO() |
| 1611 | |
| 1612 | with ZstdFile(bi, "r"): |
| 1613 | pass |
| 1614 | with ZstdFile(bi, "rb"): |
| 1615 | pass |
| 1616 | with ZstdFile(bi, "w"): |
| 1617 | pass |
| 1618 | with ZstdFile(bi, "wb"): |
| 1619 | pass |
| 1620 | with ZstdFile(bi, "a"): |
| 1621 | pass |
| 1622 | with ZstdFile(bi, "ab"): |
| 1623 | pass |
| 1624 | |
| 1625 | def test_init_with_x_mode(self): |
| 1626 | with tempfile.NamedTemporaryFile() as tmp_f: |