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.
This commit is contained in:
parent
94cbae1b89
commit
13d25c5460
1 changed files with 2 additions and 0 deletions
|
@ -7196,6 +7196,8 @@ Python 2 and Python 3.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
(setenv "PYTHONPATH" (string-append "./build/lib:"
|
||||||
|
(getenv "PYTHONPATH")))
|
||||||
(invoke "py.test" "-v"))))))
|
(invoke "py.test" "-v"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python2-pytest" ,python2-pytest)))
|
`(("python2-pytest" ,python2-pytest)))
|
||||||
|
|
Reference in a new issue