mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
SF bug 128713: type(mmap_object) blew up on Linux.
This commit is contained in:
parent
b9e202b2dc
commit
2caf8df868
4 changed files with 16 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue