me
/
guix
Archived
1
0
Fork 0

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'.
master
Marius Bakke 2020-04-21 13:38:58 +02:00
parent f9ea3b2427
commit 3994b55cd6
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 0 deletions

View File

@ -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")