summary refs log tree commit diff
path: root/gnu/packages/django.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-07-31 13:45:21 +0200
committerMarius Bakke <marius@gnu.org>2021-08-01 23:24:47 +0200
commit5e4cdb5b3b1da71788d659941bf31756b1adb45a (patch)
tree9a95d633e5b73414087acfae55ccb4f1b9dc3d59 /gnu/packages/django.scm
parent1f82eeec8d2190a85cee1ab630470a01bb3e968c (diff)
downloadguix-5e4cdb5b3b1da71788d659941bf31756b1adb45a.tar.gz
gnu: python-django: Fix test failure.
* gnu/packages/django.scm (python-django)[arguments]: Set PYTHONPATH.
Diffstat (limited to 'gnu/packages/django.scm')
-rw-r--r--gnu/packages/django.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 1988630282..3c4ea5efeb 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -79,6 +79,8 @@
            (lambda* (#:key tests? #:allow-other-keys)
              (if tests?
                  (with-directory-excursion "tests"
+                   ;; Tests expect PYTHONPATH to contain the root directory.
+                   (setenv "PYTHONPATH" "..")
                    (invoke "python" "runtests.py"
                            ;; By default tests run in parallel, which may cause
                            ;; various race conditions.  Run sequentially for