[Python-checkins] python/dist/src/Lib/test test_mmap.py,1.24,1.25

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Fri, 06 Sep 2002 22:56:23 -0700


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

Modified Files:
	test_mmap.py 
Log Message:
Try to get test to pass on Windows

Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** test_mmap.py	5 Sep 2002 21:48:06 -0000	1.24
--- test_mmap.py	7 Sep 2002 05:56:21 -0000	1.25
***************
*** 199,207 ****
              if sys.platform.startswith('win'):
                  verify(0, "Opening mmap with size+1 should work on Windows.")
-             pass
          else:
              # we expect a ValueError on Unix, but not on Windows
              if not sys.platform.startswith('win'):
                  verify(0, "Opening mmap with size+1 should raise ValueError.")
  
          print "  Opening mmap with access=ACCESS_WRITE"
--- 199,208 ----
              if sys.platform.startswith('win'):
                  verify(0, "Opening mmap with size+1 should work on Windows.")
          else:
              # we expect a ValueError on Unix, but not on Windows
              if not sys.platform.startswith('win'):
                  verify(0, "Opening mmap with size+1 should raise ValueError.")
+             del m
+         del f
  
          print "  Opening mmap with access=ACCESS_WRITE"