[pypy-commit] pypy py3.5: (arigo, plan_rich) rename the type of md5 object
plan_rich
pypy.commits at gmail.com
Mon Oct 17 07:49:45 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5
Changeset: r87835:879f445a771a
Date: 2016-10-17 13:47 +0200
http://bitbucket.org/pypy/pypy/changeset/879f445a771a/
Log: (arigo, plan_rich) rename the type of md5 object
diff --git a/pypy/module/_md5/interp_md5.py b/pypy/module/_md5/interp_md5.py
--- a/pypy/module/_md5/interp_md5.py
+++ b/pypy/module/_md5/interp_md5.py
@@ -44,7 +44,7 @@
W_MD5.typedef = TypeDef(
- 'MD5Type',
+ '_md5_md5',
__new__ = interp2app(W_MD5___new__),
update = interp2app(W_MD5.update_w),
digest = interp2app(W_MD5.digest_w),
diff --git a/pypy/module/_md5/test/test_md5.py b/pypy/module/_md5/test/test_md5.py
--- a/pypy/module/_md5/test/test_md5.py
+++ b/pypy/module/_md5/test/test_md5.py
@@ -98,3 +98,7 @@
raises(TypeError, md5.md5, "abcde")
d1 = md5.md5()
raises(TypeError, d1.update, "jkl")
+
+ def test_repr(self):
+ md5 = self.md5
+ assert 'md5' in repr(md5.md5())
More information about the pypy-commit
mailing list