GNOME Bugzilla – Bug 389786
python/tests/reader2.py fails due to slash/backslash issue
Last modified: 2007-01-27 08:02:33 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
Applied patch which you provided on the mailing list to uri.c - thanks!