[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: python-django: Fix test failure.
From: |
guix-commits |
Subject: |
04/04: gnu: python-django: Fix test failure. |
Date: |
Sun, 1 Aug 2021 17:26:33 -0400 (EDT) |
mbakke pushed a commit to branch core-updates-frozen
in repository guix.
commit 5e4cdb5b3b1da71788d659941bf31756b1adb45a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jul 31 13:45:21 2021 +0200
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(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 1988630..3c4ea5e 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