~ruther/guix-local

774812df96d2c21dba52e0360927cd78ae97a959 — Maxim Cournoyer 5 years ago 0b701d7
gnu: python-django: Do not alter PYTHONPATH.

* gnu/packages/django.scm (python-django): Remove trailing #t.
[phases]{pre-check,check}: Do not alter PYTHONPATH.
1 files changed, 1 insertions(+), 14 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +1 -14
@@ 74,23 74,10 @@
             (substitute* "tests/settings_tests/tests.py"
               ((".*def test_incorrect_timezone.*" all)
                (string-append "    @unittest.skipIf(True, 'Disabled by Guix')\n"
                               all)))

             ;; Preserve the PYTHONPATH created by Guix when running the tests.
             (substitute* "tests/admin_scripts/tests.py"
               (("python_path = \\[")
                (string-append "python_path = ['"
                               (string-join
                                (string-split (getenv "PYTHONPATH") #\:)
                                "','")
                               "', ")))

             #t))
                               all)))))
         (replace 'check
           (lambda _
             (with-directory-excursion "tests"
               (setenv "PYTHONPATH"
                       (string-append "..:" (getenv "PYTHONPATH")))
               (invoke "python" "runtests.py"
                       ;; By default tests run in parallel, which may cause
                       ;; various race conditions.  Run sequentially for