guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python2-backports-shutil-get-terminal-size: Fix test failure


From: guix-commits
Subject: 02/02: gnu: python2-backports-shutil-get-terminal-size: Fix test failure.
Date: Mon, 13 Apr 2020 13:45:43 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 13d25c546010ded6a275f167497386e6e253b54e
Author: Marius Bakke <address@hidden>
AuthorDate: Mon Apr 13 19:45:02 2020 +0200

    gnu: python2-backports-shutil-get-terminal-size: Fix test failure.
    
    * gnu/packages/python-xyz.scm 
(python2-backports-shutil-get-terminal-size)[arguments]:
    In the check phase, set PYTHONPATH before running the tests.
---
 gnu/packages/python-xyz.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ba00670..e5f7808 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7196,6 +7196,8 @@ Python 2 and Python 3.")
        (modify-phases %standard-phases
          (replace 'check
            (lambda _
+             (setenv "PYTHONPATH" (string-append "./build/lib:"
+                                                 (getenv "PYTHONPATH")))
              (invoke "py.test" "-v"))))))
     (native-inputs
      `(("python2-pytest" ,python2-pytest)))



reply via email to

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