[Python-checkins] CVS: python/dist/src/Lib/test test_mmap.py,1.14,1.15

Eric S. Raymond esr@users.sourceforge.net
Fri, 09 Feb 2001 03:49:26 -0800


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

Modified Files:
	test_mmap.py 
Log Message:
String method conversion.


Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** test_mmap.py	2001/01/17 19:11:13	1.14
--- test_mmap.py	2001/02/09 11:49:24	1.15
***************
*** 1,5 ****
  from test_support import verify
  import mmap
! import string, os, re, sys
  
  PAGESIZE = mmap.PAGESIZE
--- 1,5 ----
  from test_support import verify
  import mmap
! import os, re, sys
  
  PAGESIZE = mmap.PAGESIZE
***************
*** 22,27 ****
  
      print type(m)  # SF bug 128713:  segfaulted on Linux
!     print '  Position of foo:', string.find(m, 'foo') / float(PAGESIZE), 'pages'
!     verify(string.find(m, 'foo') == PAGESIZE)
  
      print '  Length of file:', len(m) / float(PAGESIZE), 'pages'
--- 22,27 ----
  
      print type(m)  # SF bug 128713:  segfaulted on Linux
!     print '  Position of foo:', m.find('foo') / float(PAGESIZE), 'pages'
!     verify(m.find('foo') == PAGESIZE)
  
      print '  Length of file:', len(m) / float(PAGESIZE), 'pages'