[pypy-commit] pypy py3k: Make the hashlib test pass a bytes object instead of a string.

dusty noreply at buildbot.pypy.org
Tue Mar 13 06:41:02 CET 2012


Author: Dusty Phillips <dusty at buchuki.com>
Branch: py3k
Changeset: r53412:ba07baa790ea
Date: 2012-03-12 21:47 -0700
http://bitbucket.org/pypy/pypy/changeset/ba07baa790ea/

Log:	Make the hashlib test pass a bytes object instead of a string.

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
@@ -72,7 +72,7 @@
                           "4effe5d7a31879b8b7a10fd2f544c4ca268ecc6793923583"),
             }
         import _hashlib
-        test_string = "Nobody inspects the spammish repetition"
+        test_string = b"Nobody inspects the spammish repetition"
         for hash_name, expected in sorted(expected_results.items()):
             try:
                 m = _hashlib.new(hash_name)


More information about the pypy-commit mailing list