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 sOHwMS5zQ2GcgQAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 18:39:10 +0200 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 wKibLS5zQ2GwPwAAbx9fmQ (envelope-from ) for ; Thu, 16 Sep 2021 16:39:10 +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 4D681240C2 for ; Thu, 16 Sep 2021 18:39:10 +0200 (CEST) Received: from localhost ([::1]:53038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQuPl-0002oW-FG for larch@yhetil.org; Thu, 16 Sep 2021 12:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQuBD-0006te-JF for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQuBD-0004Xe-Ak for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQuBD-0007Hy-7A for guix-patches@gnu.org; Thu, 16 Sep 2021 12:24:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH v3 18/21] gnu: python-celery: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 16:24:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.163180943127859 (code B ref 50018); Thu, 16 Sep 2021 16:24:07 +0000 Received: (at 50018) by debbugs.gnu.org; 16 Sep 2021 16:23:51 +0000 Received: from localhost ([127.0.0.1]:56380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAw-0007FB-RX for submit@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQuAv-0007EZ-0u for 50018@debbugs.gnu.org; Thu, 16 Sep 2021 12:23:49 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 782FA24002A for <50018@debbugs.gnu.org>; Thu, 16 Sep 2021 18:23:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1631809423; bh=uX1k9EvyJKiHHj9zcKS3+Io6BZ4wyJ1xnx4GvAcy2zg=; h=From:To:Cc:Subject:Date:From; b=fd+uyyeiRh4mMAbfR7iYKsx+5/d7Z2ZE5u6ViB0XK8N0nmLX+bJSkMhZMNShv3Hvj vbutoJNZPROSzFRqdCei+QEZ2Uc7vUXBMU3rHkMQBArp7bYFXO/OjMWB49P/YoVIzs 1ZCBDxk7ODJaDJgBgxcaBry5fJ25brAVxFxruKw8x+3gacoREWxeupFparLroHydSK p+289KZ7ndOvlMM14PUvriM4rBScYQ+qUAwg4krX2Aa8kJAbQ2adwD19B9b3DBIFmi jt/NaVb2MaKQvvbAYPTzRwrXR8l1AoSXVczPG7Hr6Sax4/ci81Zaww1mGZywNuHD28 ybZK3oqANFk+w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H9MpQ4hyfz6tmJ; Thu, 16 Sep 2021 18:23:42 +0200 (CEST) From: Vinicius Monego Date: Thu, 16 Sep 2021 16:21:09 +0000 Message-Id: <20210916162112.54462-19-monego@posteo.net> In-Reply-To: <20210916162112.54462-1-monego@posteo.net> References: <20210916162112.54462-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631810350; 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=J8GlTgSxUxzbVkYDEmBXILzWdP2RrsHlevjktXUUP+k=; b=rXcgwrdaF9VvKUuOEo9yaRkOk52gL0q0QJtTrNEj/Tl1Lm9Hca6uzMRL8hFVIeEOElh3NH aJFfshFd+hd+NQdLmeLuswZSooPi2DiCxjqOyxclADuJayUdQDqAx3kXqXC5NXYP8QFczP Qnfk9EuwADFpwToKD+P1FZ7BfDdeacR0SpUOPwC15HTFgTHG5j2Tn66iMtzlpTq3xOv1K9 14vagOno6dP7hvuW05jV853rpj10/6fiZesOc4uQGDCgTXrw7Dcjgk6gkWlkayazJAUXo1 olNhhdFWfE2goWQuu8Zg5vtnReXNSZCqTuqAKEAwAjcc7PKRFkWoa4Fq3PjdmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631810350; a=rsa-sha256; cv=none; b=i6e2UJvFI8+wE5yjeBJISB2ZtxaLPT6HhqmbD+ulQtFiRpuofOPmkfFxObZadpYLTIx4T8 9cXIRKQ0My7SNq4N0nqDKiZ6AtIHzqBnvE5DMeQzlsPlxwyn5yAN/hlciheHDckYboZVwc URdTk7Mk0y7gsqJub9BgsWkfqxo8xdGpfBpWKCAq0x3+IgVpLqjwIbyWuuBPrSj8Cs6luY n+T+oiFJWFp/0RF5L5rtghr4rkJQsiBptUW642ARH8ZbJnP3S6xZDyJRTE1x78jEup5MVF JIRxbWi/rD35G9/HyNvPLna9/fqarPY86oMkwVLjbYG8z00I+smI0RFZunWXXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=fd+uyyei; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=fd+uyyei; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4D681240C2 X-Spam-Score: 5.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: TU80FRApliMP * gnu/packages/python-xyz.scm (python-celery)[arguments]: Remove 'patch-requirements phase. Remove #:tests?. Override 'check phase. [native-inputs]: Add python-flaky, python-iniconfig, python-moto, python-msgpack, python-pytest-celery, python-pytest-subtests, python-pytest-timeout, python-toml. --- gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a3484a94ba..aa0c7118a2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13503,20 +13503,31 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") (base32 "1c6lw31i3v81fyj4yn37lbvv70xdgb389iccirzyjr992vlkv6ld")))) (build-system python-build-system) (arguments - '(;; TODO The tests fail with Python 3.7 - ;; https://github.com/celery/celery/issues/4849 - #:tests? #f - #:phases + '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-requirements + (add-after 'unpack 'skip-problematic-tests (lambda _ - (substitute* "requirements/test.txt" - (("pytest>=3\\.0,<3\\.3") - "pytest>=3.0")) - #t))))) + (for-each delete-file-recursively + '("t/distro" ; tests requirements for CI + "t/integration")))) ; hangs tests + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "t" "-k" + ;; AssertionError. + "not test_check_privileges_no_fchown"))))))) (native-inputs `(("python-case" ,python-case) - ("python-pytest" ,python-pytest))) + ("python-flaky" ,python-flaky) + ("python-iniconfig" ,python-iniconfig) + ("python-moto" ,python-moto) + ("python-msgpack" ,python-msgpack) + ("python-pytest" ,python-pytest-6) + ("python-pytest-celery" ,python-pytest-celery) + ("python-pytest-subtests" ,python-pytest-subtests) + ("python-pytest-timeout" ,python-pytest-timeout) + ("python-toml" ,python-toml))) (propagated-inputs `(("python-billiard" ,python-billiard) ("python-boto3" ,python-boto3) -- 2.30.2