[Python-checkins] python/dist/src/Lib/test test_mmap.py, 1.30, 1.30.18.1
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Wed Aug 24 09:17:45 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20590/Lib/test
Modified Files:
Tag: release24-maint
test_mmap.py
Log Message:
backport bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.30
retrieving revision 1.30.18.1
diff -u -d -r1.30 -r1.30.18.1
--- test_mmap.py 13 Jan 2003 21:38:45 -0000 1.30
+++ test_mmap.py 24 Aug 2005 07:17:35 -0000 1.30.18.1
@@ -120,6 +120,14 @@
else:
verify(0, 'Could seek beyond the new size')
+ # Check that the underlying file is truncated too
+ # (bug #728515)
+ f = open(TESTFN)
+ f.seek(0, 2)
+ verify(f.tell() == 512, 'Underlying file not truncated')
+ f.close()
+ verify(m.size() == 512, 'New size not reflected in file')
+
m.close()
finally:
More information about the Python-checkins
mailing list