summaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/Makefile.am2
-rw-r--r--python/tests/Makefile.in2
-rwxr-xr-xpython/tests/tstLastError.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/python/tests/Makefile.am b/python/tests/Makefile.am
index 584ddbc..bf04878 100644
--- a/python/tests/Makefile.am
+++ b/python/tests/Makefile.am
@@ -45,7 +45,7 @@ EXTRA_DIST = $(PYTESTS) $(XMLS)
if WITH_PYTHON
tests: $(PYTESTS)
- -@(PYTHONPATH="..:../.libs:$(srcdir)/.." ; export PYTHONPATH; \
+ -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; export PYTHONPATH; \
for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $(srcdir)/$$test ; done)
else
tests:
diff --git a/python/tests/Makefile.in b/python/tests/Makefile.in
index cd259be..893a517 100644
--- a/python/tests/Makefile.in
+++ b/python/tests/Makefile.in
@@ -444,7 +444,7 @@ uninstall-am: uninstall-info-am
@WITH_PYTHON_TRUE@tests: $(PYTESTS)
-@WITH_PYTHON_TRUE@ -@(PYTHONPATH="..:../.libs:$(srcdir)/.." ; export PYTHONPATH; \
+@WITH_PYTHON_TRUE@ -@(PYTHONPATH="..:../.libs:$(srcdir)/..:$$PYTHONPATH" ; export PYTHONPATH; \
@WITH_PYTHON_TRUE@ for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $(srcdir)/$$test ; done)
@WITH_PYTHON_FALSE@tests:
diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py
index 83e98b8..442609c 100755
--- a/python/tests/tstLastError.py
+++ b/python/tests/tstLastError.py
@@ -21,7 +21,7 @@ class TestCase(unittest.TestCase):
# disable the default error handler
libxml2.registerErrorHandler(None,None)
try:
- f(*args)
+ apply(f,args)
except exc:
e = libxml2.lastError()
if e is None: