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
parent
f9ea3b2427
commit
3994b55cd6
|
@ -11998,6 +11998,14 @@ characters, mouse support, and auto suggestions.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-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
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
|
|
Reference in New Issue