summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 (GMT)
commitfc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch)
tree3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/test/test_mmap.py
parentd8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff)
downloadcpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip
cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz
cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/test/test_mmap.py')
-rw-r--r--Lib/test/test_mmap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index 4673913..8066285 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -1,6 +1,6 @@
from test_support import verify
import mmap
-import string, os, re, sys
+import os, re, sys
PAGESIZE = mmap.PAGESIZE
@@ -21,8 +21,8 @@ def test_both():
# Simple sanity checks
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 ' Position of foo:', m.find('foo') / float(PAGESIZE), 'pages'
+ verify(m.find('foo') == PAGESIZE)
print ' Length of file:', len(m) / float(PAGESIZE), 'pages'
verify(len(m) == 2*PAGESIZE)