SF bug 128713: type(mmap_object) blew up on Linux.

This commit is contained in:
Tim Peters 2001-01-14 05:05:51 +00:00
parent b9e202b2dc
commit 2caf8df868
4 changed files with 16 additions and 5 deletions

View file

@ -18,6 +18,8 @@ def test_both():
f.close()
# Simple sanity checks
print type(m) # SF bug 128713: segfaulted on Linux
print ' Position of foo:', string.find(m, 'foo') / float(PAGESIZE), 'pages'
assert string.find(m, 'foo') == PAGESIZE