summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2023-04-26 16:36:33 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2023-04-26 16:37:28 +0200
commit6bbef7f3b7ea74600bef8960f8e9371f7d2ccef8 (patch)
treea10008ff359b89751f4b0d9f1273562d09a654f3
parentc09eb2ff75d803a8d094438072acb16c3ef6a3ea (diff)
downloadlibxslt-6bbef7f3b7ea74600bef8960f8e9371f7d2ccef8.tar.gz
python: Remove temp file when running tests/basic.py
Fixes make distcheck.
-rw-r--r--.gitignore1
-rwxr-xr-xpython/tests/basic.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 0db61119..8e87a38e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,7 +47,6 @@ python/libxslt.py
python/libxsltclass.py
python/libxsltclass.txt
python/setup.py
-python/tests/foo
stamp-h1
tests/runtest
tests/xmlspec/debug
diff --git a/python/tests/basic.py b/python/tests/basic.py
index a9d71188..437c9f53 100755
--- a/python/tests/basic.py
+++ b/python/tests/basic.py
@@ -13,6 +13,7 @@ style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseFile("%s/test.xml" % basedir)
result = style.applyStylesheet(doc, None)
style.saveResultToFilename("foo", result, 0)
+os.remove("foo")
stringval = style.saveResultToString(result)
if (len(stringval) != 68):
print("Error in saveResultToString")