From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OK42EKVfxWERGQAAgWs5BA (envelope-from ) for ; Fri, 24 Dec 2021 06:50:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YGbOC6VfxWH6eQAAbx9fmQ (envelope-from ) for ; Fri, 24 Dec 2021 05:50:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 055071B218 for ; Fri, 24 Dec 2021 06:50:29 +0100 (CET) Received: from localhost ([::1]:57992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0dTI-0007l1-5B for larch@yhetil.org; Fri, 24 Dec 2021 00:50:28 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640325029; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FxuX0qmxBWqyAY/ux12mBygyXDGGqoMqEUolkCjUSeA=; b=am+Fk2wYiFR2HL7QxsoZFRXi0NSAkIBmYSOLoxMb8V9oh7n1pyrp+uTAYevmcPszkXvFYJ /2iyCnsyryWbotPx2ga0koSLGqo7TtCSu+NXce/2dAUjstGFqHq2EBDR98S8GCwzZOof/i nPNw3d5H7a2Hxamab69FjKkOgrg9E9xIoCGKHD1dFr+cn8U6PzxuD7U4Vo9g/3GVqz+kJh 5xToyqGKpwNfjJd6HYLwC1k/ZShXIFeeAJmvMS6BwoKo1A50UavSm7BkZ7k8m6cdiwoddZ +WDFhzczeTqvVqqudlIWBKp48OCkK0ZfFYyOeThxwVRTASHIM6WhqmTbIixp0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640325029; a=rsa-sha256; cv=none; b=JUvx2uVbxYZXUw179eAlMxR6H2Kq1bMHXiXIDTAV3eGGNpqxuFmoWOLZPS1vR3imZRras5 zRhlydscjBdfqrldk5EafO2FsgmZGkkqmywUXith/Kdz2P6nLboJS5NPcQrVu7ptxm7srR 3r0GDU2Jmz5QBe6viYFfllj5RqdFmBRV7N4kVwkDmg3fHna5+SI/AhzEllvjZAlNq2kJeP UkdjvQ20Z/67kXs2UannuB5P3rh8pvtDAmbmZb1xbH4Bt0SU8JeFQHXH6Lx33spGHSIf6v 2YGuroRSVjG4F0mMmBmRLTOgAeDE6TSCTYLRzghTZQdNOD3L5hFmvDq7dYNbMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=GDx7Ndk8; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=GDx7Ndk8; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 055071B218 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: bDIHNx68/iDA * 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