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:
Marius Bakke 2020-04-13 19:45:02 +02:00
parent 94cbae1b89
commit 13d25c5460
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -7196,6 +7196,8 @@ (define-public python2-backports-shutil-get-terminal-size
(modify-phases %standard-phases
(replace 'check
(lambda _
(setenv "PYTHONPATH" (string-append "./build/lib:"
(getenv "PYTHONPATH")))
(invoke "py.test" "-v"))))))
(native-inputs
`(("python2-pytest" ,python2-pytest)))