diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-07 23:40:49 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-07 23:40:49 +0000 |
commit | 7cdb495e90370641f83e70d31d53c4c994672bc2 (patch) | |
tree | e625fa282c38ca6252f5adb9edfe6c7dc23e8e91 /Lib/test/support.py | |
parent | d173589c9de6396221d401a66b69b439979e69f0 (diff) | |
download | cpython-git-7cdb495e90370641f83e70d31d53c4c994672bc2.tar.gz |
Issue #3700: make test_bigmem py3k-compatible, and add bytes/bytearray tests
(please note: some of the tests /do/ fail when run with a sufficiently large memory parameter (-M),
perhaps because of the str/bytes/bytearray overhaul)
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r-- | Lib/test/support.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 68791d514f..0fa9d6bcaf 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -609,6 +609,10 @@ def bigmemtest(minsize, memuse, overhead=5*_1M): """ def decorator(f): def wrapper(self): + # Retrieve values in case someone decided to adjust them + minsize = wrapper.minsize + memuse = wrapper.memuse + overhead = wrapper.overhead if not max_memuse: # If max_memuse is 0 (the default), # we still want to run the tests with size set to a few kb, @@ -636,6 +640,9 @@ def bigmemtest(minsize, memuse, overhead=5*_1M): def precisionbigmemtest(size, memuse, overhead=5*_1M): def decorator(f): def wrapper(self): + size = wrapper.size + memuse = wrapper.memuse + overhead = wrapper.overhead if not real_max_memuse: maxsize = 5147 else: |