Author: Armin Rigo <[email protected]>
Branch:
Changeset: r47120:ddff981df9d5
Date: 2011-09-06 19:34 +0200
http://bitbucket.org/pypy/pypy/changeset/ddff981df9d5/
Log: Add comment.
diff --git a/pypy/objspace/std/test/test_obj.py
b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -96,7 +96,8 @@
#assert type(log[0].message) is DeprecationWarning
def test_object_str(self):
- # obscure case
+ # obscure case: __str__() must delegate to __repr__() without adding
+ # type checking on its own
class A(object):
def __repr__(self):
return 123456
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit