summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-13 23:11:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-13 23:11:19 (GMT)
commit5ebfd36afa9093099ab23e4d1256274ae7ee6978 (patch)
treeed954f677f6427ad84bead3dc212b8746948f9a8 /Lib/test/output
parentafeb2a4d8914848d8761472c93b3e9cbff57b275 (diff)
downloadcpython-5ebfd36afa9093099ab23e4d1256274ae7ee6978.zip
cpython-5ebfd36afa9093099ab23e4d1256274ae7ee6978.tar.gz
cpython-5ebfd36afa9093099ab23e4d1256274ae7ee6978.tar.bz2
CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.
This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
Diffstat (limited to 'Lib/test/output')
-rw-r--r--Lib/test/output/test_mmap13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/output/test_mmap b/Lib/test/output/test_mmap
index 815cfe3..f1a25a9 100644
--- a/Lib/test/output/test_mmap
+++ b/Lib/test/output/test_mmap
@@ -17,4 +17,17 @@ test_mmap
Try to seek beyond end of mmap...
Try to seek to negative position...
Attempting resize()
+ Creating 10 byte test data file.
+ Opening mmap with access=ACCESS_READ
+ Ensuring that readonly mmap can't be slice assigned.
+ Ensuring that readonly mmap can't be item assigned.
+ Ensuring that readonly mmap can't be write() to.
+ Ensuring that readonly mmap can't be write_byte() to.
+ Ensuring that readonly mmap can't be resized.
+ Opening mmap with access=ACCESS_WRITE
+ Modifying write-through memory map.
+ Opening mmap with access=ACCESS_COPY
+ Modifying copy-on-write memory map.
+ Ensuring copy-on-write maps cannot be resized.
+ Ensuring invalid access parameter raises exception.
Test passed