From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id BxsXNqBhFGET9QAAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 01:47:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OG82MaBhFGHRBAAA1q6Kng (envelope-from ) for ; Wed, 11 Aug 2021 23:47:44 +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 8018E1DD39 for ; Thu, 12 Aug 2021 01:47:44 +0200 (CEST) Received: from localhost ([::1]:59820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDxwl-0008Da-Lj for larch@yhetil.org; Wed, 11 Aug 2021 19:47:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDxwA-0006uz-QB for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDxwA-0006dx-Jb for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDxwA-0001KU-Hs for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH 16/19] gnu: python-celery: Enable tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 23:47:06 +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.16287256104966 (code B ref 50018); Wed, 11 Aug 2021 23:47:06 +0000 Received: (at 50018) by debbugs.gnu.org; 11 Aug 2021 23:46:50 +0000 Received: from localhost ([127.0.0.1]:36957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvt-0001I1-Np for submit@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvs-0001HR-Co for 50018@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:48 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CD3B8240026 for <50018@debbugs.gnu.org>; Thu, 12 Aug 2021 01:46:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628725602; bh=2PR+syNWideI42R/hssCIqXWV0qJ/L3MsQd8DliztWg=; h=From:To:Cc:Subject:Date:From; b=Pi2Eqk0atXych59s72cT3oeAd50bdFQjCuUbotNGhN43bB14BXHa0r6+4MR4LGj8l YYhje+kjUcm8zOLonYGx6Cf+6cAi5uSoIMwqGLP9jRHt+dpeIEOD2smgcTagWKCZxQ +Vp0fc0hVpZPJ47DK1nYv/VqAOizXZce0fS6v+rHO/dizy/UIh8OVD9bw/E96YGjiU J9wMr3IzQIpgQ1Q7LtZ5IvLe6jZowWDHNuKJsFhpXyvmymBCslxXTyfuiCv7+Cd3sL dxfV0JBSWEwJ9QJX39XbKFCLwj/olWiTwazIGkyoUaJQWYYwEzt4kkcIRRj2iU9VIW jWXhzAFJ+7V6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlRLB0RWJz9rxF; Thu, 12 Aug 2021 01:46:41 +0200 (CEST) From: Vinicius Monego Date: Wed, 11 Aug 2021 23:45:08 +0000 Message-Id: <20210811234511.32450-16-monego@posteo.net> In-Reply-To: <20210811234511.32450-1-monego@posteo.net> References: <20210811234511.32450-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=1628725664; 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=u2pBALav7f1Ia7EpdcDWn3IUJXPekqz7ALhvmSfOHGc=; b=ruY7+pc1d4zHixoYq+SH3DKNa3hR7Y1CPwTRFUBkPS6Jj+IX0IEvEMu4KG1nTxnfmwTRH/ 3jmxoBhZYh2IkIbcoLnHxGBH4CXkJ7yJex6/l+l3NqYWL/fW0JCmMSiVc8Ooxjl2Q65o8Z SPaVwSOQcxfq3qJnBuEgxScqAt5vtZd7ig1zDNV6h44Wy+klX2ZjcAGLYRQE8mduEbniww YnjQfKv8jKRFvy9xwAHIxm3RB/VhwgAg/QSK+8RfaK13iAx8/u3lhd0DFSaMU6JuTrpTSd VbWGl4/vcDg8chS5VjDDxnclON+eaiWsxb9pRCTmt/kCZSeX0bwB2KV0H83taw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628725664; a=rsa-sha256; cv=none; b=TF+H85Qxdfz27sNb1dhg4DfFVJtS6Kunf3n4tf/tePitUjAL7+CMpwgsYHENtpEbG35FMG eYIgwgWDCOonKkR4MiHZjfhOC4vjz+E+fXWy7UGG66y9eYe63Rquj/VcWqygyDIrf/JKpK CwcZm+/3pVyuvsJzHruiybidUqbh32/n9JtdnCX45iamkzC8sguNDVEY34S6kxQJZfuzHV YmML9XZfLnio66vBn4NqjgxrzfcpdQkE92onoPxmFpTKl69TzU8rHIEML4dzrosy6d79TQ Bb1z7NG3p4oEUex4Zm+kRdyon33nX899KnRRnwjnKvjP+C8FJK65xmkTejeD4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Pi2Eqk0a; 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: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Pi2Eqk0a; 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: 8018E1DD39 X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: psy02XLwovtE * 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-pytest-celery, python-pytest-subtests, python-pytest-timeout, python-toml. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 175bab1b89..21b2d59d8a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13344,20 +13344,32 @@ 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 + ;; XXX: Requires many extra dependencies and network. + "t/unit/backends")))) + (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-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