[Python-checkins] python/dist/src/Lib/test test_winreg.py, 1.11, 1.11.16.1

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Sun Nov 30 17:45:05 EST 2003


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

Modified Files:
      Tag: release23-maint
	test_winreg.py 
Log Message:
Add testcases for _winreg segfault (SF 851056).


Index: test_winreg.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_winreg.py,v
retrieving revision 1.11
retrieving revision 1.11.16.1
diff -C2 -d -r1.11 -r1.11.16.1
*** test_winreg.py	23 Jul 2002 19:04:09 -0000	1.11
--- test_winreg.py	30 Nov 2003 22:45:03 -0000	1.11.16.1
***************
*** 11,18 ****
  test_data = [
      ("Int Value",     45,                                      REG_DWORD),
!     ("String Val",    "A string value",                        REG_SZ,),
      ("StringExpand",  "The path is %path%",                    REG_EXPAND_SZ),
      ("Multi-string",  ["Lots", "of", "string", "values"],      REG_MULTI_SZ),
      ("Raw Data",      ("binary"+chr(0)+"data"),                REG_BINARY),
  ]
  if have_unicode:
--- 11,20 ----
  test_data = [
      ("Int Value",     45,                                      REG_DWORD),
!     ("String Val",    "A string value",                        REG_SZ),
      ("StringExpand",  "The path is %path%",                    REG_EXPAND_SZ),
      ("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:





More information about the Python-checkins mailing list