me
/
guix
Archived
1
0
Fork 0

gnu: python-django: Fix test failure.

* gnu/packages/django.scm (python-django)[arguments]: Set PYTHONPATH.
Marius Bakke 2021-07-31 13:45:21 +02:00
parent 1f82eeec8d
commit 5e4cdb5b3b
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 2 additions and 0 deletions

View File

@ -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