[Python-Dev] test_largefile.py failing on Linux (original) (raw)

Skip Montanaro skip@pobox.com
Mon, 11 Mar 2002 11:46:08 -0600


Tim> 1. The docs promise that truncate() will never grow the file.  I
Tim>    don't believe Unix ftruncate() promises that...

It does not. In fact, on my Mandrake box it explicitly says that behavior is unspecified:

If the file previously was shorter, it is unspecified whether the file
is left unchanged or is extended.

Skip