guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: python-jedi: Fix test failure with Python 3.8.


From: guix-commits
Subject: 03/04: gnu: python-jedi: Fix test failure with Python 3.8.
Date: Tue, 21 Apr 2020 18:09:31 -0400 (EDT)

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

commit 3994b55cd64831b36f52025192580d50028448f7
Author: Marius Bakke <address@hidden>
AuthorDate: Tue Apr 21 13:38:58 2020 +0200

    gnu: python-jedi: Fix test failure with Python 3.8.
    
    * gnu/packages/python-xyz.scm (python-jedi)[arguments]: Add phase
    'adjust-test-for-python-3.8'.
---
 gnu/packages/python-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c5e9c8e..86f4552 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11998,6 +11998,14 @@ characters, mouse support, and auto suggestions.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-before 'check 'adjust-test-for-python-3.8
+           (lambda _
+             ;; Mimic upstream commit e7feeef64 to allow for extra output lines
+             ;; in TestSetupReadline on Python 3.8.  Remove for jedi > 0.17.0.
+             (substitute* "test/test_utils.py"
+               (("assert len\\(difference\\) < 20")
+                "assert len(difference) < 22"))
+             #t))
          (replace 'check
            (lambda _
              (setenv "HOME" "/tmp")



reply via email to

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