[Python-checkins] CVS: python/dist/src/Lib/test test_mmap.py,1.9,1.10

Tim Peters python-dev@python.org
Mon, 4 Sep 2000 00:34:08 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv14470/python/dist/src/Lib/test

Modified Files:
	test_mmap.py 
Log Message:
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).


Index: test_mmap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mmap.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** test_mmap.py	2000/07/30 15:38:35	1.9
--- test_mmap.py	2000/09/04 07:34:05	1.10
***************
*** 41,45 ****
      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]
      assert m[PAGESIZE-1 : PAGESIZE + 7] == '\0foobar\0'
      
--- 41,45 ----
      print '  Contents of first 3 bytes:', repr(m[0:3])
      assert m[0:3] == '3\0\0'
!     print '  Contents of second page:',  repr(m[PAGESIZE-1 : PAGESIZE + 7])
      assert m[PAGESIZE-1 : PAGESIZE + 7] == '\0foobar\0'
      
***************
*** 120,122 ****
  
  test_both()
- 
--- 120,121 ----