Author: Richard Plangger <planri...@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()) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit