From patchwork Wed Sep 6 09:15:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 53554 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 D63F027BBEA; Wed, 6 Sep 2023 10:22:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 40CCB27BBE2 for ; Wed, 6 Sep 2023 10:22:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdoez-00035I-F2; Wed, 06 Sep 2023 05:17:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdoeo-0002jY-N0 for guix-patches@gnu.org; Wed, 06 Sep 2023 05:17:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdoeo-0005df-4V for guix-patches@gnu.org; Wed, 06 Sep 2023 05:17:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdoeo-00068y-Vh; Wed, 06 Sep 2023 05:17:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65758] [PATCH v7 08/57] gnu: python-django-3.1.14: Skip failing tests. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 09:17:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65758 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65758@debbugs.gnu.org Cc: ngraves@ngraves.fr, Lars-Dominik Braun , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by 65758-submit@debbugs.gnu.org id=B65758.169399182323536 (code B ref 65758); Wed, 06 Sep 2023 09:17:06 +0000 Received: (at 65758) by debbugs.gnu.org; 6 Sep 2023 09:17:03 +0000 Received: from localhost ([127.0.0.1]:60877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdoel-00067U-9u for submit@debbugs.gnu.org; Wed, 06 Sep 2023 05:17:03 -0400 Received: from 17.mo550.mail-out.ovh.net ([87.98.179.142]:37837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdoej-00066s-4F for 65758@debbugs.gnu.org; Wed, 06 Sep 2023 05:17:01 -0400 Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.16.29]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id BACC6248EA for <65758@debbugs.gnu.org>; Wed, 6 Sep 2023 09:16:57 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-pfjw7 (unknown [10.110.171.191]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6EDB51FD1B; Wed, 6 Sep 2023 09:16:57 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-6684bf9d7b-pfjw7 with ESMTPSA id p+djGYlD+GRwLQAAb0L0Jw (envelope-from ); Wed, 06 Sep 2023 09:16:57 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R00295618f69-0fe2-42b8-a2d3-bc8b4c506362, 8B1004CD708F4A346301A86E579550867B8E22F8) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 Date: Wed, 6 Sep 2023 11:15:32 +0200 Message-ID: <0713b7b67b9817c732e4e0baefbc36ada576316c.1693991781.git.ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <68f75e9d42cc8c0c8d0fa78cd0817b28dfb774c6.1693991781.git.ngraves@ngraves.fr> References: <68f75e9d42cc8c0c8d0fa78cd0817b28dfb774c6.1693991781.git.ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 4866420874939196130 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrudehfedgudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhephfffteehhfdulefgteekffdutdfhtdfgleejueehgfeileejkeeukeeiuefgieelnecuffhomhgrihhnpehhthhtphifrhgrphhpvghrshhtvghsthhsrdhphienucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddrleeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiheejheekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/django.scm (python-django-3.1.14): Skip failing tests.. [propagated-inputs]: Replace python-agriref by python-asgiref-3.4.1. --- gnu/packages/django.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 6845872ec7..84f18fc3d1 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -34,6 +34,7 @@ (define-module (gnu packages django) #:use-module (guix gexp) #:use-module (guix build-system python) #:use-module (guix deprecation) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages compression) @@ -178,10 +179,39 @@ (define-public python-django-3.1.14 (sha256 (base32 "0ix3v2wlnplv78zxjrlw8z3hiap2d5mxvk0ny2fc65526shsb93j")))) + (arguments + (substitute-keyword-arguments (package-arguments python-django-3.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'skip-failing-tests + (lambda _ + (substitute* "tests/inspectdb/tests.py" + (("import mock, skipUnless") + "import mock, skipUnless, skipIf") + (("@skipUnless\\(connection\\.vendor == 'sqlite',") + "@skipIf(True, ")) + (substitute* "tests/fixtures/tests.py" + (("import mock") + "import mock, skipIf") + (("(def test_dumpdata_proxy_with_concrete\\(self\\):)" + content all) + (string-append + "@skipIf(True, \"" + "A warning isn't displayed if a proxy model is dumped with " + "its concrete parent." + "\")\n " content))) + (substitute* "tests/httpwrappers/tests.py" + (("(def test_memoryview_content\\(self\\):)" + content all) + (string-append + "@unittest.skipIf(True, 'Bad assertion')\n " + content))))))))) (propagated-inputs (modify-inputs (package-propagated-inputs python-django-3.2) ;; Django 4.0 deprecated pytz in favor of Pythons built-in zoneinfo. - (append python-pytz))))) + (append python-pytz) + (delete "python-asgiref") + (append python-asgiref-3.4.1))))) (define-public python-django-2.2 (package