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

Method mutation

Lib/test/test_io/test_memoryio.py:892–893  ·  view source on GitHub ↗
(memio)

Source from the content-addressed store, hash-verified

890 def test_cow_truncate(self):
891 # Ensure truncate causes a copy.
892 def mutation(memio):
893 memio.truncate(1)
894 self._test_cow_mutation(mutation)
895
896 @support.cpython_only

Callers

nothing calls this directly

Calls 4

truncateMethod · 0.45
seekMethod · 0.45
writeMethod · 0.45
__setstate__Method · 0.45

Tested by

no test coverage detected