Skip to content
Snippets Groups Projects
Commit 179acb04ce8c authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

tests: Fix out-of-tree Python tests

parent 1023866dd9e5
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import os
import sys
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
import libxslt
......@@ -2,8 +3,8 @@
import sys
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
import libxslt
basedir = os.path.dirname(os.path.realpath(__file__))
......@@ -9,3 +10,3 @@
styledoc = libxml2.parseFile("test.xsl")
styledoc = libxml2.parseFile("%s/test.xsl" % basedir)
style = libxslt.parseStylesheetDoc(styledoc)
......@@ -11,5 +12,5 @@
style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseFile("test.xml")
doc = libxml2.parseFile("%s/test.xml" % basedir)
result = style.applyStylesheet(doc, None)
style.saveResultToFilename("foo", result, 0)
stringval = style.saveResultToString(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment