]> granicus.if.org Git - python/commit
Dubious assumptions:
authorTim Peters <tim.peters@gmail.com>
Thu, 6 Sep 2001 01:17:45 +0000 (01:17 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 6 Sep 2001 01:17:45 +0000 (01:17 +0000)
commitb8c0230a27443b65c23c666ad87ed905ec606663
treeca368c6b16dfa4c54fc79b9e03752182ba1b1275
parent6e13a562ae01a962612ca76f9afcc7211240236e
Dubious assumptions:

1. That seeking beyond the end of a file increases the size of a file.
2. That files so extended are magically filled with null bytes.

I find no support for either in the C std, and #2 in particular turns out
not to be true on Win32 (you apparently see whatever trash happened to be
on disk).  Left #1 intact, but changed the test to check only bytes it
explicitly wrote.  Also fiddled the "expected" vs "got" failure reports
to consistently use repr (%r) -- they weren't readable otherwise.
Lib/test/test_largefile.py