diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 10:28:37 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 10:28:37 +0200 |
commit | 1a3ff48c55fcb4dd8151750976242d83a84a09b0 (patch) | |
tree | 74f4f275edb2206b64eb2aeaf0be9406814c1b71 /Lib/test/test_hashlib.py | |
parent | 5a688dbf97f1537d3f2309bfe6be93dab2f10ce0 (diff) | |
parent | 94190bb6e7f3b1c7942b562fe0fad3e62b5386b9 (diff) | |
download | cpython-git-1a3ff48c55fcb4dd8151750976242d83a84a09b0.tar.gz |
Start fixing test_bigmem:
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
Diffstat (limited to 'Lib/test/test_hashlib.py')
-rw-r--r-- | Lib/test/test_hashlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 17d752b893..97981dd20d 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -17,7 +17,7 @@ except ImportError: import unittest import warnings from test import support -from test.support import _4G, precisionbigmemtest +from test.support import _4G, bigmemtest # Were we compiled --with-pydebug or with #define Py_DEBUG? COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount') @@ -196,7 +196,7 @@ class HashLibTestCase(unittest.TestCase): b'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 'd174ab98d277d9f5a5611c2c9f419d9f') - @precisionbigmemtest(size=_4G + 5, memuse=1) + @bigmemtest(size=_4G + 5, memuse=1) def test_case_md5_huge(self, size): if size == _4G + 5: try: @@ -204,7 +204,7 @@ class HashLibTestCase(unittest.TestCase): except OverflowError: pass # 32-bit arch - @precisionbigmemtest(size=_4G - 1, memuse=1) + @bigmemtest(size=_4G - 1, memuse=1) def test_case_md5_uintmax(self, size): if size == _4G - 1: try: |