Lines Matching refs:truncate
106 print('try truncate')
110 if not hasattr(f, 'truncate'):
111 raise unittest.SkipTest("open().truncate() not available on this system")
115 # Cut it back via seek + truncate with no argument.
118 f.truncate()
122 # Ensure that truncate(smaller than true size) shrinks
126 f.truncate(newsize)
131 # XXX truncate(larger than true size) is ill-defined
134 f.truncate(1)
190 if hasattr(f, 'truncate'):