mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
waste an hour tracking down an illusion; repaired it; writing/reading non- printable characters (except \t\r\n) into/outof text-mode files ain't defined x-platform, and at least some Windows text editors do surprising things in their presence. Also added a by-hand "build humber" to the Windows build, in an approximation of Python's inexplicable BUILD-number Unix scheme. I'll try to remember to increment it each time I make a Windows installer available. It's starting at 2, cuz I've put 2 installers out so far (both with BUILD #0).
19 lines
550 B
Text
19 lines
550 B
Text
test_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
|