]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add testcases for _winreg segfault (SF 851056).
authorGuido van Rossum <guido@python.org>
Sun, 30 Nov 2003 22:45:03 +0000 (22:45 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 30 Nov 2003 22:45:03 +0000 (22:45 +0000)
Lib/test/test_winreg.py

index f686c98b812fedd7d92fbc0df5bb1bfe62ab0902..3efe4663e8f10f6f2571838741ae7b654c03589e 100644 (file)
@@ -10,10 +10,12 @@ test_key_name = "SOFTWARE\\Python Registry Test Key - Delete Me"
 
 test_data = [
     ("Int Value",     45,                                      REG_DWORD),
-    ("String Val",    "A string value",                        REG_SZ,),
+    ("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:
     test_data+=[