Author: Dusty Phillips <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to