MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_zstdfile_truncate

Method test_zstdfile_truncate

Lib/test/test_zstd.py:2491–2494  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2489 f.flush(b'456', f.FLUSH_BLOCK)
2490
2491 def test_zstdfile_truncate(self):
2492 with ZstdFile(io.BytesIO(), 'w') as f:
2493 with self.assertRaises(io.UnsupportedOperation):
2494 f.truncate(200)
2495
2496 def test_zstdfile_iter_issue45475(self):
2497 lines = [l for l in ZstdFile(io.BytesIO(COMPRESSED_THIS_FILE))]

Callers

nothing calls this directly

Calls 3

ZstdFileClass · 0.90
assertRaisesMethod · 0.45
truncateMethod · 0.45

Tested by

no test coverage detected