[Python-checkins] python/dist/src/Lib/test test_mmap.py,1.26,1.27

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 10 Sep 2002 14:19:57 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv9713/python/Lib/test

Modified Files:
	test_mmap.py 
Log Message:
I left some debugging junk in here; removed it.  Also replaced a few
more instances of the bizarre "del f; del m" ways to spell .close() (del
won't do any good here under Jython, etc).


Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** test_mmap.py	10 Sep 2002 20:49:15 -0000	1.26
--- test_mmap.py	10 Sep 2002 21:19:55 -0000	1.27
***************
*** 222,230 ****
                 "Write-through memory map memory not updated properly.")
          m.flush()
!         del m, f
          f = open(TESTFN, 'rb')
          stuff = f.read()
          f.close()
!         verify(open(TESTFN, 'rb').read() == 'c'*mapsize,
                 "Write-through memory map data file not updated properly.")
  
--- 222,231 ----
                 "Write-through memory map memory not updated properly.")
          m.flush()
!         m.close()
!         f.close()
          f = open(TESTFN, 'rb')
          stuff = f.read()
          f.close()
!         verify(stuff == 'c'*mapsize,
                 "Write-through memory map data file not updated properly.")