guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: behave: Fix tests.


From: guix-commits
Subject: 01/01: gnu: behave: Fix tests.
Date: Thu, 19 Dec 2019 09:36:47 -0500 (EST)

roptat pushed a commit to branch master
in repository guix.

commit 74471036f63d5b4d578cd79972221100d992d7e1
Author: Julien Lepiller <address@hidden>
Date:   Thu Dec 19 15:34:47 2019 +0100

    gnu: behave: Fix tests.
    
    * gnu/packages/check.scm (behave): Add missing directory to PYTHONPATH 
before
    tests.
---
 gnu/packages/check.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c0cb4ae..6619142 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1962,7 +1962,15 @@ backported from Python 2.7 for Python 2.4+.")
        ("python-parse" ,python-parse)
        ("python-parse-type" ,python-parse-type)))
     (arguments
-     '(#:test-target "behave_test"))
+     '(#:test-target "behave_test"
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'fix-library-loading
+           (lambda _
+             ;; Otherwise, tests fail with no module named 'path'
+             (setenv "PYTHONPATH" (string-append (getenv "PYTHONPATH") ":"
+                                                 (getcwd) "/tasks/_vendor"))
+             #t)))))
     (home-page "https://github.com/behave/behave";)
     (synopsis "Python behavior-driven development")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]