~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_hashlib.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import unittest
18
18
import warnings
19
19
from test import support
20
 
from test.support import _4G, precisionbigmemtest
 
20
from test.support import _4G, bigmemtest
21
21
 
22
22
# Were we compiled --with-pydebug or with #define Py_DEBUG?
23
23
COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount')
196
196
                   b'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
197
197
                   'd174ab98d277d9f5a5611c2c9f419d9f')
198
198
 
199
 
    @precisionbigmemtest(size=_4G + 5, memuse=1)
 
199
    @bigmemtest(size=_4G + 5, memuse=1)
200
200
    def test_case_md5_huge(self, size):
201
201
        if size == _4G + 5:
202
202
            try:
204
204
            except OverflowError:
205
205
                pass # 32-bit arch
206
206
 
207
 
    @precisionbigmemtest(size=_4G - 1, memuse=1)
 
207
    @bigmemtest(size=_4G - 1, memuse=1)
208
208
    def test_case_md5_uintmax(self, size):
209
209
        if size == _4G - 1:
210
210
            try: