aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2021-12-24 05:47:30 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-26 21:41:49 +0100
commitb5f990da9ca267de6685f4b95de2b9211e2d2638 (patch)
tree7d5f70387aec7eb6380c52e9fa22c08b0ec3aef5
parent8a4d3bd91f76a528da4eb0864de7371243014e1f (diff)
downloadguix-b5f990da9ca267de6685f4b95de2b9211e2d2638.tar
guix-b5f990da9ca267de6685f4b95de2b9211e2d2638.tar.gz
gnu: python-pytest-doctestplus: Update to 0.11.2.
* gnu/packages/python-check.scm (python-pytest-doctestplus): Update to 0.11.2. [arguments]<#:phases>: In the custom 'check phase, skip tests that require remote data. [native-inputs]: Add python-setuptools-scm. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/python-check.scm15
1 files changed, 11 insertions, 4 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index e6cf2a4f85..a745e735db 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -402,13 +402,13 @@ are too large to conveniently hard-code them in the tests.")
(define-public python-pytest-doctestplus
(package
(name "python-pytest-doctestplus")
- (version "0.7.0")
+ (version "0.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-doctestplus" version))
(sha256
- (base32 "1ai9kvd7xbq2jg2h8gmkb8lqzyrxvdh4zg3vxndg149iwd1hyi7d"))))
+ (base32 "0j1lvlj3ps975q9hmg8i6rpqm0313j3r18bc3l8mz6khb7vav4zk"))))
(build-system python-build-system)
(arguments
'(#:phases
@@ -417,9 +417,16 @@ are too large to conveniently hard-code them in the tests.")
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Make the installed plugin discoverable by Pytest.
(add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (invoke "python" "-m" "pytest" "-k"
+ (string-append ; skip tests that require remote data
+ "not test_remote_data_url"
+ " and not test_remote_data_float_cmp"
+ " and not test_remote_data_ignore_whitespace"
+ " and not test_remote_data_ellipsis"
+ " and not test_remote_data_requires"
+ " and not test_remote_data_ignore_warnings")))))))
(native-inputs
- (list python-pytest))
+ (list python-pytest python-setuptools-scm))
(home-page "https://github.com/astropy/pytest-doctestplus")
(synopsis "Pytest plugin with advanced doctest features")
(description