diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2008-10-13 08:23:00 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2008-10-13 08:23:00 +0000 |
commit | 3813a5dbe7d0608965d690d98e1730ad5c8878ff (patch) | |
tree | c6bc50f8d593ff6f8b9f46161b022682d1e508cd /lang/python30/files/patch-lib-test_test_hashlib.py | |
parent | - Fix synergy crashing on copy and paste from Fedora (diff) |
Introduce two new versions of Python: 2.6 and 3.0rc1 (finally!)
Python 2.6 will be the next default python version when enough
testings of consumer ports are done. The new "2to3" program is
renamed to 2to3-2.6 and 2to3-3.0 for each version, respectively.
Repo-copied by: marcus
Notes
Notes:
svn path=/head/; revision=221521
Diffstat (limited to 'lang/python30/files/patch-lib-test_test_hashlib.py')
-rw-r--r-- | lang/python30/files/patch-lib-test_test_hashlib.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lang/python30/files/patch-lib-test_test_hashlib.py b/lang/python30/files/patch-lib-test_test_hashlib.py deleted file mode 100644 index 15ede2b17e8c..000000000000 --- a/lang/python30/files/patch-lib-test_test_hashlib.py +++ /dev/null @@ -1,41 +0,0 @@ ---- Lib/test/test_hashlib.py.orig 2005-08-21 19:45:59.000000000 +0100 -+++ Lib/test/test_hashlib.py 2008-08-30 10:43:27.000000000 +0100 -@@ -9,7 +9,7 @@ - import hashlib - import unittest - from test import test_support -- -+from test.test_support import _4G, precisionbigmemtest - - def hexstr(s): - import string -@@ -55,7 +55,6 @@ - m2.update(aas + bees + cees) - self.assertEqual(m1.digest(), m2.digest()) - -- - def check(self, name, data, digest): - # test the direct constructors - computed = getattr(hashlib, name)(data).hexdigest() -@@ -75,6 +74,21 @@ - self.check('md5', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', - 'd174ab98d277d9f5a5611c2c9f419d9f') - -+ @precisionbigmemtest(size=_4G + 5, memuse=1) -+ def test_case_md5_huge(self, size): -+ if size == _4G + 5: -+ try: -+ self.check('md5', 'A'*size, 'c9af2dff37468ce5dfee8f2cfc0a9c6d') -+ except OverflowError: -+ pass # 32-bit arch -+ -+ @precisionbigmemtest(size=_4G - 1, memuse=1) -+ def test_case_md5_uintmax(self, size): -+ if size == _4G - 1: -+ try: -+ self.check('md5', 'A'*size, '28138d306ff1b8281f1a9067e1a1a2b3') -+ except OverflowError: -+ pass # 32-bit arch - - # use the three examples from Federal Information Processing Standards - # Publication 180-1, Secure Hash Standard, 1995 April 17 |