This commit was manufactured by cvs2svn to create tag 'r221c2'.
[python/dscho.git] / Lib / test / output / test_mmap
blob4adf7027b78fb8f4a5c373700d6fcd12dc89e1ad
1 test_mmap
2 <type 'mmap.mmap'>
3   Position of foo: 1.0 pages
4   Length of file: 2.0 pages
5   Contents of byte 0: '\x00'
6   Contents of first 3 bytes: '\x00\x00\x00'
8   Modifying file's content...
9   Contents of byte 0: '3'
10   Contents of first 3 bytes: '3\x00\x00'
11   Contents of second page: '\x00foobar\x00'
12   Regex match on mmap (page start, length of match): 1.0 6
13   Seek to zeroth byte
14   Seek to 42nd byte
15   Seek to last byte
16   Try to seek to negative position...
17   Try to seek beyond end of mmap...
18   Try to seek to negative position...
19   Attempting resize()
20   Creating 10 byte test data file.
21   Opening mmap with access=ACCESS_READ
22   Ensuring that readonly mmap can't be slice assigned.
23   Ensuring that readonly mmap can't be item assigned.
24   Ensuring that readonly mmap can't be write() to.
25   Ensuring that readonly mmap can't be write_byte() to.
26   Ensuring that readonly mmap can't be resized.
27   Opening mmap with access=ACCESS_WRITE
28   Modifying write-through memory map.
29   Opening mmap with access=ACCESS_COPY
30   Modifying copy-on-write memory map.
31   Ensuring copy-on-write maps cannot be resized.
32   Ensuring invalid access parameter raises exception.
33  Test passed