From: Vinicius Monego <monego@posteo.net>
To: 52768@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#52768] [PATCH 3/5] gnu: python-pytest-doctestplus: Honor #:tests?.
Date: Fri, 24 Dec 2021 05:47:31 +0000 [thread overview]
Message-ID: <20211224054733.1009894-3-monego@posteo.net> (raw)
In-Reply-To: <20211224054733.1009894-1-monego@posteo.net>
* gnu/packages/python-check.scm (python-pytest-doctestplus): Honor #:tests? in
the custom 'check phase.
---
gnu/packages/python-check.scm | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index a745e735db..50e63cb734 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -414,17 +414,18 @@ are too large to conveniently hard-code them in the tests.")
'(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
;; Make the installed plugin discoverable by Pytest.
- (add-installed-pythonpath inputs outputs)
- (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")))))))
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (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 python-setuptools-scm))
(home-page "https://github.com/astropy/pytest-doctestplus")
--
2.30.2
next prev parent reply other threads:[~2021-12-24 5:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-24 5:46 [bug#52768] [PATCH 0/5] Update Astropy Vinicius Monego
2021-12-24 5:47 ` [bug#52768] [PATCH 1/5] gnu: python-pytest-arraydiff: Fix 'sanity-check phase Vinicius Monego
2021-12-24 5:47 ` [bug#52768] [PATCH 2/5] gnu: python-pytest-doctestplus: Update to 0.11.2 Vinicius Monego
2021-12-24 5:47 ` Vinicius Monego [this message]
2021-12-24 5:47 ` [bug#52768] [PATCH 4/5] gnu: erfa: Update to 2.0.0 Vinicius Monego
2021-12-24 5:50 ` [bug#52768] [PATCH 5/5] gnu: python-astropy: Update to 5.0 Vinicius Monego
2021-12-26 20:43 ` bug#52768: [PATCH 0/5] Update Astropy Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211224054733.1009894-3-monego@posteo.net \
--to=monego@posteo.net \
--cc=52768@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).