summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2011-03-25 10:42:37 (GMT)
committerThomas Wouters <thomas@python.org>2011-03-25 10:42:37 (GMT)
commit518b5aea1a1ddb649c242ae507b3c7b9f0c6edb3 (patch)
tree785b79e698fd523dba8d496ccca6d2a76b0c7565 /Lib/test/support.py
parent07b29a07ad1ae76b132dc34c4d060ca43576ea96 (diff)
downloadcpython-518b5aea1a1ddb649c242ae507b3c7b9f0c6edb3.zip
cpython-518b5aea1a1ddb649c242ae507b3c7b9f0c6edb3.tar.gz
cpython-518b5aea1a1ddb649c242ae507b3c7b9f0c6edb3.tar.bz2
Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
few other assertEqual tests that snuck in), and expand the docstrings and comments explaining why and how these tests are supposed to work.
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 52ec232..fbf6de4 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -1029,6 +1029,11 @@ def bigmemtest(minsize, memuse):
return decorator
def precisionbigmemtest(size, memuse):
+ """Decorator for bigmem tests that need exact sizes.
+
+ Like bigmemtest, but without the size scaling upward to fill available
+ memory.
+ """
def decorator(f):
def wrapper(self):
size = wrapper.size