]> granicus.if.org Git - python/commitdiff
Merged revisions 86338 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 9 Nov 2010 21:36:16 +0000 (21:36 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 9 Nov 2010 21:36:16 +0000 (21:36 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86338 | antoine.pitrou | 2010-11-08 21:36:57 +0100 (lun., 08 nov. 2010) | 3 lines

  Fix test_hashlib with the bigmem option
........

Lib/test/test_hashlib.py

index 36c7f475aed8c4664e006f2152443bd6782870de..94635e15d1e5ff5286b70c4151ee2e07724497a5 100644 (file)
@@ -96,7 +96,7 @@ class HashLibTestCase(unittest.TestCase):
     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
 
@@ -104,7 +104,7 @@ class HashLibTestCase(unittest.TestCase):
     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