[Python-checkins] python/dist/src/Lib/test test_winreg.py, 1.12, 1.13

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Dec 3 10:24:05 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv18146

Modified Files:
	test_winreg.py 
Log Message:
Reduce the size of Big String and Big Binary tests to 2**14 (minus one
for Big String).  This should make the tests pass on Win98SE.  Note
that the docs only promise lengths up to 2048.  Unfortunately this no
longer tests for the segfault I was seeing earlier, but I'm confident
I've nailed that one. :-)  Fixes SF 852281.  Will backport to 2.3.


Index: test_winreg.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_winreg.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_winreg.py	30 Nov 2003 22:46:18 -0000	1.12
--- test_winreg.py	3 Dec 2003 15:24:02 -0000	1.13
***************
*** 15,20 ****
      ("Multi-string",  ["Lots", "of", "string", "values"],      REG_MULTI_SZ),
      ("Raw Data",      ("binary"+chr(0)+"data"),                REG_BINARY),
!     ("Big String",    "x"*(512*1024-4),                        REG_SZ),
!     ("Big Binary",    "x"*(1024*1024-4),                       REG_BINARY),
  ]
  if have_unicode:
--- 15,20 ----
      ("Multi-string",  ["Lots", "of", "string", "values"],      REG_MULTI_SZ),
      ("Raw Data",      ("binary"+chr(0)+"data"),                REG_BINARY),
!     ("Big String",    "x"*(2**14-1),                           REG_SZ),
!     ("Big Binary",    "x"*(2**14),                             REG_BINARY),
  ]
  if have_unicode:





More information about the Python-checkins mailing list