[Top][All Lists]

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

branch master updated: gnu: python-jedi: Fix build.

From: guix-commits
Subject: branch master updated: gnu: python-jedi: Fix build.
Date: Fri, 24 Jun 2022 09:32:22 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 0c6960c17a gnu: python-jedi: Fix build.
0c6960c17a is described below

commit 0c6960c17aac890e871ff41dae7c0cde1d741c9f
Author: Maxim Cournoyer <>
AuthorDate: Fri Jun 24 09:27:32 2022 -0400

    gnu: python-jedi: Fix build.
    * gnu/packages/python-xyz.scm (python-jedi)
    [phases]{fix-completion-test}: New phase.
    {check}: Delete trailing #t.
 gnu/packages/python-xyz.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a2178bf5d5..f8ca2242ed 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17038,12 +17038,19 @@ scans through a file and detects issues.")
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-completion-test
+           (lambda _
+             ;; This resolves a failure in the 'test_completion' test (see:
+             ;;
+             ;; TODO: Remove after a new release is made (currently: 0.18.1).
+             (substitute* "test/completion/"
+               (("\\[a for a in \\[1,2\\] if lambda: 3\\]\\[0\\]")
+                "[a for a in [1,2] if (lambda: 3)][0]"))))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "HOME" "/tmp")
-               (invoke "python" "-m" "pytest" "-vv"))
-             #t)))))
+               (invoke "python" "-m" "pytest" "-vv")))))))
      (list python-colorama python-docopt python-pytest))

reply via email to

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