[Python-checkins] CVS: python/dist/src/Lib/test test_mmap.py,1.5,1.6
A.M. Kuchling
python-dev@python.org
Tue, 11 Jul 2000 03:45:30 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2891
Modified Files:
test_mmap.py
Log Message:
Add test of resize() method of mmap objects
Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_mmap.py 2000/06/18 04:47:08 1.5
--- test_mmap.py 2000/07/11 10:45:27 1.6
***************
*** 95,98 ****
--- 95,111 ----
assert 0, 'expected a ValueError but did not get it'
+ # Try resizing map
+ print ' Attempting resize()'
+ try:
+ m.resize( 512 )
+ except SystemError:
+ # resize() not supported
+ # No messages are printed, since the output of this test suite
+ # would then be different across platforms.
+ pass
+ else:
+ # resize() is supported
+ pass
+
m.close()
os.unlink("foo")