]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport:
authorGuido van Rossum <guido@python.org>
Wed, 3 Dec 2003 15:25:10 +0000 (15:25 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Dec 2003 15:25:10 +0000 (15:25 +0000)
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.

Lib/test/test_winreg.py

index 3efe4663e8f10f6f2571838741ae7b654c03589e..a9bc9621557a2e68a8e468138f87965c86fe8da1 100644 (file)
@@ -14,8 +14,8 @@ test_data = [
     ("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),
+    ("Big String",    "x"*(2**14-1),                           REG_SZ),
+    ("Big Binary",    "x"*(2**14),                             REG_BINARY),
 ]
 if have_unicode:
     test_data+=[