[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: python-wtforms: Skip optional tests.
From: |
Efraim Flashner |
Subject: |
02/06: gnu: python-wtforms: Skip optional tests. |
Date: |
Thu, 27 Oct 2016 20:32:13 +0000 (UTC) |
efraim pushed a commit to branch core-updates
in repository guix.
commit 13c4d8746be63e8cd4b49c52bb9bbfc873b324dd
Author: Efraim Flashner <address@hidden>
Date: Thu Oct 27 22:13:22 2016 +0300
gnu: python-wtforms: Skip optional tests.
* gnu/packages/python.scm (python-wtforms)[arguments]: Add a phase
preventing tests from failing when optional tests aren't run.
---
gnu/packages/python.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4215c3d..691c5de 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8093,6 +8093,17 @@ python-xdo for newer bindings.)")
(base32
"0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-django-test
+ ;; Don't fail the tests when the inputs for the optional tests
cannot be found.
+ (lambda _
+ (substitute*
+ "tests/runtests.py"
+ (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil',
'locale_babel'") "")
+ (("sys.stderr.write(\"### Disabled test '%s', dependency not
found\n\" % name)") ""))
+ #t)))))
(native-inputs
`(("unzip" ,unzip)))
(home-page "http://wtforms.simplecodes.com/")
- branch core-updates updated (377bfbc -> f9a6531), Efraim Flashner, 2016/10/27
- 04/06: gnu: python-pytest-django: Add missing test input., Efraim Flashner, 2016/10/27
- 01/06: gnu: lightning: Add missing input., Efraim Flashner, 2016/10/27
- 02/06: gnu: python-wtforms: Skip optional tests.,
Efraim Flashner <=
- 03/06: gnu: python-django-filter: Add inputs for tests., Efraim Flashner, 2016/10/27
- 06/06: gnu: python-parse: Use 'modify-phases' syntax., Efraim Flashner, 2016/10/27
- 05/06: gnu: python-parse: Fix failing test., Efraim Flashner, 2016/10/27