[pypy-issue] Issue #2641: XML library incorrectly parsing files on Windows (pypy/pypy)

SimonVM issues-reply at bitbucket.org
Tue Aug 29 05:01:24 EDT 2017


New issue 2641: XML library incorrectly parsing files on Windows
https://bitbucket.org/pypy/pypy/issues/2641/xml-library-incorrectly-parsing-files-on

SimonVM:

pypy incorrectly parses XML files using the default xml.etree.ElementTree library.

A minimal working example is given below.

XML file "test.xml":

```
#!xml

<root></root>
```

Python file "test.py":


```
#!python

import xml.etree.ElementTree as ET

tree = ET.parse("test.xml")
root = tree.getroot()        
print root.tag
```

Expected output of running `pypy test.py` is "root", actual output is "r". Other functions (such as findall) are also affected.

This is an issue with latest version of PyPy, v5.8.0-win32 on 64-bit Windows 10. It runs correctly on Linux, as well as for Python v2.7.13.




More information about the pypy-issue mailing list