Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r59178:1fae8d20200b
Date: 2012-12-01 11:29 -0800
http://bitbucket.org/pypy/pypy/changeset/1fae8d20200b/

Log:    %8 on the way out now that we identifier_w on the way in

diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -56,11 +56,11 @@
     name = space.str_w(space.repr(w_name))
     if w_descr is None:
         raise operationerrfmt(space.w_AttributeError,
-                              "'%s' object has no attribute %s",
+                              "'%s' object has no attribute %8",
                               typename, name)
     else:
         raise operationerrfmt(space.w_AttributeError,
-                              "'%s' object attribute %s is read-only",
+                              "'%s' object attribute %8 is read-only",
                               typename, name)
 
 def get_attribute_name(space, w_obj, w_name):
diff --git a/pypy/objspace/test/test_descriptor.py 
b/pypy/objspace/test/test_descriptor.py
--- a/pypy/objspace/test/test_descriptor.py
+++ b/pypy/objspace/test/test_descriptor.py
@@ -79,6 +79,7 @@
         raises(AttributeError, setattr, x, '\ud800', 1)
         raises(AttributeError, getattr, x, '\ud800')
         raises(AttributeError, delattr, x, '\ud800')
+        raises(AttributeError, getattr, x, '\uDAD1\uD51E')
 
     def test_special_methods_returning_strings(self): 
         class A(object): 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to