From patchwork Fri Dec 24 05:47:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 35628 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C666127BBEA; Fri, 24 Dec 2021 05:50:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E1C0627BBE9 for ; Fri, 24 Dec 2021 05:50:23 +0000 (GMT) Received: from localhost ([::1]:57992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0dTD-0007l1-3q for patchwork@mira.cbaines.net; Fri, 24 Dec 2021 00:50:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0dRv-0007HX-DU for guix-patches@gnu.org; Fri, 24 Dec 2021 00:49:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0dRv-0007pc-3Q for guix-patches@gnu.org; Fri, 24 Dec 2021 00:49:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n0dRv-0007B6-35 for guix-patches@gnu.org; Fri, 24 Dec 2021 00:49:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52768] [PATCH 3/5] gnu: python-pytest-doctestplus: Honor #:tests?. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Dec 2021 05:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52768 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52768@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 52768-submit@debbugs.gnu.org id=B52768.164032489827494 (code B ref 52768); Fri, 24 Dec 2021 05:49:03 +0000 Received: (at 52768) by debbugs.gnu.org; 24 Dec 2021 05:48:18 +0000 Received: from localhost ([127.0.0.1]:35474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0dRB-00079O-QE for submit@debbugs.gnu.org; Fri, 24 Dec 2021 00:48:18 -0500 Received: from mout02.posteo.de ([185.67.36.66]:49301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0dR9-00078x-AA for 52768@debbugs.gnu.org; Fri, 24 Dec 2021 00:48:15 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4A851240101 for <52768@debbugs.gnu.org>; Fri, 24 Dec 2021 06:48:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640324889; bh=dl2cgB+2naBWxFew0BWPIgSNskduigv4PpzARHm6HrU=; h=From:To:Cc:Subject:Date:From; b=GDx7Ndk8jJy7CDaKMnZhShr/8AH9kC7/BUgYX4I5xDG9RBW1qlxU5qOc8a4GE9gvJ RP5utdWzT7aeFOqKZzNa727TAjJRX6mWljBtxtvFfp/pMNKamkN6mLY7PTGRBMtWJI Xk+SxEjSnoL6O0ZoyvTJ8mMvdNXopqczSRgOiQFoZylELCJx+8B0nkfGS5pl+URGN/ yzDkp2v42TutxGJh+LqGRHmBbBTabZ3rgYfV8E7Fk+gaTc0MNmZhKU8MzQ9uCZyee6 weBK6v+Y1CAa0AwChkdxCwt6105so2c9nEyY38HMUqVlfOWrYwdFh6B4GyLvNNE4fx EnUk4UNtod+8g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JKx1N20kxz9rxF; Fri, 24 Dec 2021 06:48:08 +0100 (CET) From: Vinicius Monego Date: Fri, 24 Dec 2021 05:47:31 +0000 Message-Id: <20211224054733.1009894-3-monego@posteo.net> In-Reply-To: <20211224054733.1009894-1-monego@posteo.net> References: <20211224054733.1009894-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")