]> granicus.if.org Git - python/commitdiff
test_mmap wrote null bytes into its expected-output file; this caused me to
authorTim Peters <tim.peters@gmail.com>
Mon, 4 Sep 2000 07:34:06 +0000 (07:34 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 4 Sep 2000 07:34:06 +0000 (07:34 +0000)
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
Lib/test/test_mmap.py
PCbuild/python20.dsp

index 2ceed20e3104f673a4e85e068844e001e1c16c1c..24e28f835f3e7f42331491476af6840ebc3d417f 100644 (file)
Binary files a/Lib/test/output/test_mmap and b/Lib/test/output/test_mmap differ
index 73c1a15b16d1dfd6da49e78a5faf066ed63b97c2..449c674119d0fde9ff5c5a9ebdbf1b7de67bdc3a 100644 (file)
@@ -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()
-
index 24ebc9a40717b80a2f8b2a6291a37285482af1ec..d3281d395c860c89d1a2d15ff8ab91adf76863e0 100644 (file)
@@ -694,8 +694,12 @@ SOURCE=..\Modules\getbuildinfo.c
 \r
 !IF  "$(CFG)" == "python20 - Win32 Release"\r
 \r
+# ADD CPP /D BUILD=2\r
+\r
 !ELSEIF  "$(CFG)" == "python20 - Win32 Debug"\r
 \r
+# ADD CPP /D BUILD=2\r
+\r
 !ELSEIF  "$(CFG)" == "python20 - Win32 Alpha Debug"\r
 \r
 !ELSEIF  "$(CFG)" == "python20 - Win32 Alpha Release"\r