Author: Dusty Phillips <[email protected]>
Branch: py3k
Changeset: r53403:8ab830374cf8
Date: 2012-03-12 17:05 -0700
http://bitbucket.org/pypy/pypy/changeset/8ab830374cf8/

Log:    No longer have 'pure python' implementation of hashlib algorithms

diff --git a/pypy/module/_hashlib/test/test_hashlib.py 
b/pypy/module/_hashlib/test/test_hashlib.py
--- a/pypy/module/_hashlib/test/test_hashlib.py
+++ b/pypy/module/_hashlib/test/test_hashlib.py
@@ -41,24 +41,6 @@
             c_digest    = digest
             c_hexdigest = hexdigest
 
-            # also test the pure Python implementation
-            py_new = getattr(hashlib, '__get_builtin_constructor')
-            h = py_new(name)('')
-            assert h.digest_size == expected_size
-            #
-            h.update('abc')
-            h2 = h.copy()
-            h.update('def')
-            digest = h.digest()
-            hexdigest = h.hexdigest()
-            h2.update('d')
-            h2.update('ef')
-            assert digest    == h2.digest()
-            assert hexdigest == h2.hexdigest()
-
-            # compare both implementations
-            assert c_digest    == digest
-            assert c_hexdigest == hexdigest
 
     def test_shortcut(self):
         import hashlib
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to