From 5e4cdb5b3b1da71788d659941bf31756b1adb45a Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 31 Jul 2021 13:45:21 +0200 Subject: gnu: python-django: Fix test failure. * gnu/packages/django.scm (python-django)[arguments]: Set PYTHONPATH. --- gnu/packages/django.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/django.scm') 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 -- cgit v1.2.3