summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-12-03 15:24:02 (GMT)
committerGuido van Rossum <guido@python.org>2003-12-03 15:24:02 (GMT)
commit291481b4dbb88560179c8064c1e2e198365bd3dd (patch)
treee4259e94d86df94fe0630b04379ce2dd4de94a8c /Lib
parent7bafa9f3403225d425befabca246eb9d40bc48fb (diff)
downloadcpython-291481b4dbb88560179c8064c1e2e198365bd3dd.zip
cpython-291481b4dbb88560179c8064c1e2e198365bd3dd.tar.gz
cpython-291481b4dbb88560179c8064c1e2e198365bd3dd.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_winreg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py
index 3efe466..a9bc962 100644
--- a/Lib/test/test_winreg.py
+++ b/Lib/test/test_winreg.py
@@ -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+=[