mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +03:00
python: Remove temp file when running tests/basic.py
Fixes make distcheck.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -47,7 +47,6 @@ python/libxslt.py
|
|||||||
python/libxsltclass.py
|
python/libxsltclass.py
|
||||||
python/libxsltclass.txt
|
python/libxsltclass.txt
|
||||||
python/setup.py
|
python/setup.py
|
||||||
python/tests/foo
|
|
||||||
stamp-h1
|
stamp-h1
|
||||||
tests/runtest
|
tests/runtest
|
||||||
tests/xmlspec/debug
|
tests/xmlspec/debug
|
||||||
|
@ -13,6 +13,7 @@ style = libxslt.parseStylesheetDoc(styledoc)
|
|||||||
doc = libxml2.parseFile("%s/test.xml" % basedir)
|
doc = libxml2.parseFile("%s/test.xml" % basedir)
|
||||||
result = style.applyStylesheet(doc, None)
|
result = style.applyStylesheet(doc, None)
|
||||||
style.saveResultToFilename("foo", result, 0)
|
style.saveResultToFilename("foo", result, 0)
|
||||||
|
os.remove("foo")
|
||||||
stringval = style.saveResultToString(result)
|
stringval = style.saveResultToString(result)
|
||||||
if (len(stringval) != 68):
|
if (len(stringval) != 68):
|
||||||
print("Error in saveResultToString")
|
print("Error in saveResultToString")
|
||||||
|
Reference in New Issue
Block a user