]> granicus.if.org Git - python/commit
A few days ago a test was added here to ensure that creating an mmap
authorTim Peters <tim.peters@gmail.com>
Tue, 10 Sep 2002 20:49:15 +0000 (20:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 10 Sep 2002 20:49:15 +0000 (20:49 +0000)
commit4f4f4d70af3197cfedb41ae62eab37f3dc52e11a
tree467551742c79bc6f67687cbb76ed90fd2d0e3a5b
parenta0d183363971887a29d176d52c35275eb9a014f0
A few days ago a test was added here to ensure that creating an mmap
with a size larger than the underlying file worked on Windows.  It
does <wink>.  However, merely creating an mmap that way has the side
effect of growing the file on disk to match the specified size.  A
*later* test assumed that the file on disk was still exactly as it was
before the new "size too big" test was added, but that's no longer true.
So added a hack at the end of the "size too big" test to truncate the
disk file back to its original size on Windows.
Lib/test/test_mmap.py