After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 389786 - python/tests/reader2.py fails due to slash/backslash issue
python/tests/reader2.py fails due to slash/backslash issue
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-26 18:01 UTC by stephane.bidoul
Modified: 2007-01-27 08:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description stephane.bidoul 2006-12-26 18:01:39 UTC
python/tests/reader2.py fails on Windows XP. This test used to succeed (until 2.6.22 at least)

The python glob.glob() function used to produce the filename to test sometimes outputs a mix of slashes and backslashes, eg ../../test/valid\127772.xml, leading to the following error:

../../test/valid\127772.xml:4: validity error : Validation failed: no DTD found !

Putting the following line after glob.glob() (line 32) 
valid_files = [f.replace("\\","/") for f in valid_files]
make the test succeed by providing only forward slashes to libxml2.

-sbi
Comment 1 William M. Brack 2007-01-27 08:02:33 UTC
Applied patch which you provided on the mailing list to uri.c - thanks!