[Python-checkins] python/dist/src/Lib/test test_mmap.py,1.19.8.3,1.19.8.4

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Fri, 06 Sep 2002 22:58:30 -0700


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

Modified Files:
      Tag: release22-maint
	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.19.8.3
retrieving revision 1.19.8.4
diff -C2 -d -r1.19.8.3 -r1.19.8.4
*** test_mmap.py	5 Sep 2002 22:30:03 -0000	1.19.8.3
--- test_mmap.py	7 Sep 2002 05:58:28 -0000	1.19.8.4
***************
*** 200,208 ****
              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"
--- 200,209 ----
              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"