Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: 6ac3c7b58813bd9fb7447e4e52342c5306692a69 authored by cvs2svn on 23 January 2001, 01:57:40 UTC
This commit was manufactured by cvs2svn to create tag 'r21a1'.
Tip revision: 6ac3c7b
test_mmap
test_mmap
<type 'mmap'>
  Position of foo: 1.0 pages
  Length of file: 2.0 pages
  Contents of byte 0: '\000'
  Contents of first 3 bytes: '\000\000\000'

  Modifying file's content...
  Contents of byte 0: '3'
  Contents of first 3 bytes: '3\000\000'
  Contents of second page: '\000foobar\000'
  Regex match on mmap (page start, length of match): 1.0 6
  Seek to zeroth byte
  Seek to 42nd byte
  Seek to last byte
  Try to seek to negative position...
  Try to seek beyond end of mmap...
  Try to seek to negative position...
  Attempting resize()
 Test passed
back to top