test_etree_parser_io_error crashes when compiling lxml inside a chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Hi, I am the packager for lxml for the Arch Linux distribution. We have a suite of tools that creates a clean chroot without another packages or dependencies on-the-fly everytime we want to package something, this with the purpose to detect missing dependencies and avoid future problems.
Anyway, in the process of the package creation we run the tests and now this 2 new test are failing.. Seems that the test creates a file and a temp dir and then tries to remove that dir .. and for some reason with the chroot can't create the dirs .. I've tested outside the chroot and the tests run fine, but I'd like to see if anybody have an idea about this.
here is the output:
=======
ERROR: test_etree_
-------
Traceback (most recent call last):
File "/usr/lib/
testMethod()
File "/build/
os.rmdir(dn)
OSError: [Errno 2] No such file or directory: '/tmp/Directory
=======
ERROR: test_etree_
-------
Traceback (most recent call last):
File "/usr/lib/
testMethod()
File "/build/
os.rmdir(dn)
OSError: [Errno 2] No such file or directory: '/tmp/Directory
-------
Ran 1488 tests in 16.374s
FAILED (errors=2)
Comparing with ElementTree 1.3.0
TESTED VERSION: 3.2.1
Python: sys.version_
lxml.etree: (3, 2, 1, 0)
libxml used: (2, 9, 1)
libxml compiled: (2, 9, 1)
libxslt used: (1, 1, 28)
libxslt compiled: (1, 1, 28)
make: *** [test_inplace] Error 1
==> ERROR: A failure occurred in check().
Aborting...
==> ERROR: Build failed, check /var/lib/
Interesting that only those two tests fail. They are not actually testing lxml but are compatibility tests that run against ElementTree. There is a corresponding ETreeIOTestCase class that tests lxml but there the same code seems to work for you....
However, it's difficult to say what's wrong here. Maybe some locale issue with the file system encoding?