[Python-checkins] r45767 - python/trunk/Lib/test/test_support.py

thomas.wouters python-checkins at python.org
Fri Apr 28 00:38:32 CEST 2006


Author: thomas.wouters
Date: Fri Apr 28 00:38:32 2006
New Revision: 45767

Modified:
   python/trunk/Lib/test/test_support.py
Log:

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.



Modified: python/trunk/Lib/test/test_support.py
==============================================================================
--- python/trunk/Lib/test/test_support.py	(original)
+++ python/trunk/Lib/test/test_support.py	Fri Apr 28 00:38:32 2006
@@ -298,7 +298,7 @@
                 # 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)


More information about the Python-checkins mailing list