Commits

Amaury Forgeot d'Arc committed 5b5f061

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

  • Participants
  • Parent commits 9e83bc8
  • Branches py3k

Comments (0)

Files changed (1)

File 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]