mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: python-tblib: Fix test failure with Python 3.7.
* gnu/packages/python.scm (python-tblib)[arguments]: Add 'adjust-tests' phase.
This commit is contained in:
parent
148caae049
commit
437c78bcfb
1 changed files with 8 additions and 0 deletions
|
@ -9021,6 +9021,14 @@ (define-public python-tblib
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'adjust-tests
|
||||
(lambda _
|
||||
(when (which "python3")
|
||||
;; Adjust the example output to match that of Python 3.7:
|
||||
;; <https://github.com/ionelmc/python-tblib/issues/36>.
|
||||
(substitute* "README.rst"
|
||||
(("Exception\\('fail',") "Exception('fail'"))
|
||||
#t)))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
;; Upstream runs tests after installation and the package itself
|
||||
|
|
Loading…
Reference in a new issue