Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59160:5b5f061c5aa5
Date: 2012-12-01 14:03 +0100
http://bitbucket.org/pypy/pypy/changeset/5b5f061c5aa5/
Log: With PyPy, getattr(x, "\ud800") always raises an AttributeError.
CPython is not very consistent here.
diff --git a/lib-python/3.2/test/test_xml_etree_c.py
b/lib-python/3.2/test/test_xml_etree_c.py
--- a/lib-python/3.2/test/test_xml_etree_c.py
+++ b/lib-python/3.2/test/test_xml_etree_c.py
@@ -21,7 +21,7 @@
>>> 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]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit