[Python-checkins] r86338 - python/branches/py3k/Lib/test/test_hashlib.py

antoine.pitrou python-checkins at python.org
Mon Nov 8 21:36:58 CET 2010


Author: antoine.pitrou
Date: Mon Nov  8 21:36:57 2010
New Revision: 86338

Log:
Fix test_hashlib with the bigmem option



Modified:
   python/branches/py3k/Lib/test/test_hashlib.py

Modified: python/branches/py3k/Lib/test/test_hashlib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_hashlib.py	(original)
+++ python/branches/py3k/Lib/test/test_hashlib.py	Mon Nov  8 21:36:57 2010
@@ -182,7 +182,7 @@
     def test_case_md5_huge(self, size):
         if size == _4G + 5:
             try:
-                self.check('md5', 'A'*size, 'c9af2dff37468ce5dfee8f2cfc0a9c6d')
+                self.check('md5', b'A'*size, 'c9af2dff37468ce5dfee8f2cfc0a9c6d')
             except OverflowError:
                 pass # 32-bit arch
 
@@ -190,7 +190,7 @@
     def test_case_md5_uintmax(self, size):
         if size == _4G - 1:
             try:
-                self.check('md5', 'A'*size, '28138d306ff1b8281f1a9067e1a1a2b3')
+                self.check('md5', b'A'*size, '28138d306ff1b8281f1a9067e1a1a2b3')
             except OverflowError:
                 pass # 32-bit arch
 


More information about the Python-checkins mailing list