[pypy-svn] r79777 - pypy/trunk/lib_pypy/pypy_test

arigo at codespeak.net arigo at codespeak.net
Fri Dec 3 13:46:35 CET 2010


Author: arigo
Date: Fri Dec  3 13:46:31 2010
New Revision: 79777

Modified:
   pypy/trunk/lib_pypy/pypy_test/test_hashlib.py
Log:
Fix?  I cannot reproduce the error locally

Modified: pypy/trunk/lib_pypy/pypy_test/test_hashlib.py
==============================================================================
--- pypy/trunk/lib_pypy/pypy_test/test_hashlib.py	(original)
+++ pypy/trunk/lib_pypy/pypy_test/test_hashlib.py	Fri Dec  3 13:46:31 2010
@@ -41,7 +41,8 @@
 
         # also test the pure Python implementation
         modname, constructor = pure_python_version[name].split('.')
-        builder = getattr(__import__(modname), constructor)
+        mod = __import__('lib_pypy.' + modname, None, None, ['__doc__'])
+        builder = getattr(mod, constructor)
         h = builder('')
         assert h.digest_size == expected_size
         assert h.digestsize == expected_size



More information about the Pypy-commit mailing list