MCPcopy Index your code
hub / github.com/python/cpython / test_zstdfile_truncate

Method test_zstdfile_truncate

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

Source from the content-addressed store, hash-verified

2488 f.flush(b'456', f.FLUSH_BLOCK)
2489
2490 def test_zstdfile_truncate(self):
2491 with ZstdFile(io.BytesIO(), 'w') as f:
2492 with self.assertRaises(io.UnsupportedOperation):
2493 f.truncate(200)
2494
2495 def test_zstdfile_iter_issue45475(self):
2496 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