summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-27 22:38:32 (GMT)
committerThomas Wouters <thomas@python.org>2006-04-27 22:38:32 (GMT)
commit137b1ad8a0946556075442cb102c89671a7df2c5 (patch)
tree8dceb28300f377c91fd220113ec13513fc812039 /Lib/test/test_support.py
parent58ac820523228252b5516333377d351fed0a2095 (diff)
downloadcpython-137b1ad8a0946556075442cb102c89671a7df2c5.zip
cpython-137b1ad8a0946556075442cb102c89671a7df2c5.tar.gz
cpython-137b1ad8a0946556075442cb102c89671a7df2c5.tar.bz2
Do the small-memory run of big-meormy tests using a prime number, rather
than a convenient power-of-2-and-multiple-of-5, so incorrect testing algorithms fail more easily.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 85a6279..c1a635a 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -298,7 +298,7 @@ def bigmemtest(minsize, memuse, overhead=5*_1M):
# we still want to run the tests with size set to a few kb,
# to make sure they work. We still want to avoid using
# too much memory, though, but we do that noisily.
- maxsize = 1024*5
+ maxsize = 5147
self.failIf(maxsize * memuse + overhead > 20 * _1M)
else:
maxsize = int((max_memuse - overhead) / memuse)