summaryrefslogtreecommitdiff
blob: 6761de73d6ceaf85c5270af0fa03d04e4a814c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/tests/test_doctest.sh b/tests/test_doctest.sh
index 5b3a13d..82749a2 100755
--- a/tests/test_doctest.sh
+++ b/tests/test_doctest.sh
@@ -53,7 +53,7 @@ do
   if ${python} -c 'import ldap'
   then
     echo "Running pynslcd doctests with $python..."
-    PYTHONPATH="${top_builddir}/pynslcd" ${python} -m doctest -v "${top_srcdir}/pynslcd"/*.py
+    PYTHONPATH="${top_builddir}/pynslcd:${top_builddir}" ${python} -m doctest -v "${top_srcdir}/pynslcd"/*.py
   fi
   echo "Running pynslcd doctests with $python..."
   PYTHONPATH="${top_builddir}/utils" ${python} -m doctest -v "${top_srcdir}/utils"/*.py
diff --git a/tests/test_pynslcd_cache.py b/tests/test_pynslcd_cache.py
index 8d3d02a..e7b19c0 100755
--- a/tests/test_pynslcd_cache.py
+++ b/tests/test_pynslcd_cache.py
@@ -27,6 +27,8 @@ import unittest
 # fix the Python path
 sys.path.insert(1, os.path.abspath(os.path.join(sys.path[0], '..', 'pynslcd')))
 sys.path.insert(2, os.path.abspath(os.path.join('..', 'pynslcd')))
+sys.path.insert(3, os.path.abspath(os.path.join('..')))
+print(sys.path)
 
 
 # TODO: think about case-sensitivity of cache searches (have tests for that)