[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: python-tblib: Fix test failure with Python 3.7.
From: |
guix-commits |
Subject: |
02/02: gnu: python-tblib: Fix test failure with Python 3.7. |
Date: |
Wed, 21 Nov 2018 18:09:36 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 437c78bcfb268fe9d4e6116b2eb083ed873215f4
Author: Marius Bakke <address@hidden>
Date: Thu Nov 22 00:00:44 2018 +0100
gnu: python-tblib: Fix test failure with Python 3.7.
* gnu/packages/python.scm (python-tblib)[arguments]: Add 'adjust-tests'
phase.
---
gnu/packages/python.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5e41224..569a1a5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9021,6 +9021,14 @@ own code, responding to click events and updating clock
every second.")
(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