Commits

Amaury Forgeot d'Arc committed 5b5f061

With PyPy, getattr(x, "\ud800") always raises an AttributeError.
CPython is not very consistent here.

Comments (0)

Files changed (1)

lib-python/3.2/test/test_xml_etree_c.py

     >>> getattr(e, '\uD800')           # doctest: +ELLIPSIS
     Traceback (most recent call last):
       ...
-    UnicodeEncodeError: ...
+    AttributeError: 'Element' object has no attribute '\ud800'
 
     >>> p = cElementTree.XMLParser()
     >>> p.version.split()[0]