diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-09-04 07:34:06 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-09-04 07:34:06 (GMT) |
commit | 50699215f8120afd2c5649161491ac899e8c8e44 (patch) | |
tree | cfd13b3c4dbab2b5b97ccb20677fb14fdf02ab07 /Lib | |
parent | b89f41efbc28f1021323ec74f2ec40cc372a0862 (diff) | |
download | cpython-50699215f8120afd2c5649161491ac899e8c8e44.zip cpython-50699215f8120afd2c5649161491ac899e8c8e44.tar.gz cpython-50699215f8120afd2c5649161491ac899e8c8e44.tar.bz2 |
test_mmap wrote null bytes into its expected-output file; this caused me to
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).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/output/test_mmap | bin | 542 -> 550 bytes | |||
-rw-r--r-- | Lib/test/test_mmap.py | 3 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/output/test_mmap b/Lib/test/output/test_mmap Binary files differindex 2ceed20..24e28f8 100644 --- a/Lib/test/output/test_mmap +++ b/Lib/test/output/test_mmap diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 73c1a15..449c674 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -40,7 +40,7 @@ def test_both(): assert m[0] == '3' print ' Contents of first 3 bytes:', repr(m[0:3]) assert m[0:3] == '3\0\0' - print ' Contents of second page:', m[PAGESIZE-1 : PAGESIZE + 7] + print ' Contents of second page:', repr(m[PAGESIZE-1 : PAGESIZE + 7]) assert m[PAGESIZE-1 : PAGESIZE + 7] == '\0foobar\0' m.flush() @@ -119,4 +119,3 @@ def test_both(): print ' Test passed' test_both() - |