From 50699215f8120afd2c5649161491ac899e8c8e44 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 4 Sep 2000 07:34:06 +0000 Subject: [PATCH] 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). --- Lib/test/output/test_mmap | Bin 542 -> 550 bytes Lib/test/test_mmap.py | 3 +-- PCbuild/python20.dsp | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/test/output/test_mmap b/Lib/test/output/test_mmap index 2ceed20e3104f673a4e85e068844e001e1c16c1c..24e28f835f3e7f42331491476af6840ebc3d417f 100644 GIT binary patch delta 29 icmbQovW#T|C!>IRjDdkcT7G^~ViAa?zFClwmk|JZp$CZo delta 21 ccmZ3+GLK~gCnE<#T7G^~ViCh;Nk(2q075_oV*mgE diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 73c1a15b16..449c674119 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() - diff --git a/PCbuild/python20.dsp b/PCbuild/python20.dsp index 24ebc9a407..d3281d395c 100644 --- a/PCbuild/python20.dsp +++ b/PCbuild/python20.dsp @@ -694,8 +694,12 @@ SOURCE=..\Modules\getbuildinfo.c !IF "$(CFG)" == "python20 - Win32 Release" +# ADD CPP /D BUILD=2 + !ELSEIF "$(CFG)" == "python20 - Win32 Debug" +# ADD CPP /D BUILD=2 + !ELSEIF "$(CFG)" == "python20 - Win32 Alpha Debug" !ELSEIF "$(CFG)" == "python20 - Win32 Alpha Release" -- 2.50.1