[pypy-commit] pypy py3.3-fixes3: port _sha512.py module test to py3

numerodix noreply at buildbot.pypy.org
Mon Aug 18 01:05:45 CEST 2014


Author: Martin Matusiak <numerodix at gmail.com>
Branch: py3.3-fixes3
Changeset: r72861:9852a31d49d9
Date: 2014-08-17 19:50 +0200
http://bitbucket.org/pypy/pypy/changeset/9852a31d49d9/

Log:	port _sha512.py module test to py3

diff --git a/lib_pypy/_sha512.py b/lib_pypy/_sha512.py
--- a/lib_pypy/_sha512.py
+++ b/lib_pypy/_sha512.py
@@ -270,7 +270,7 @@
 def test():
     import _sha512
 
-    a_str = "just a test string"
+    a_str = b"just a test string"
 
     assert _sha512.sha512().hexdigest() == sha512().hexdigest()
     assert _sha512.sha512(a_str).hexdigest() == sha512(a_str).hexdigest()


More information about the pypy-commit mailing list