From patchwork Sun Jun 25 16:57:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 51283 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 47BFA27BBE9; Sun, 25 Jun 2023 18:00:41 +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=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 8FCBF27BBE2 for ; Sun, 25 Jun 2023 18:00:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDT5y-0004Be-DI; Sun, 25 Jun 2023 13:00:14 -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 1qDT5s-00046R-Ol for guix-patches@gnu.org; Sun, 25 Jun 2023 13:00:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDT5s-0001fQ-Ei for guix-patches@gnu.org; Sun, 25 Jun 2023 13:00:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDT5q-00062w-3b; Sun, 25 Jun 2023 13:00:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55474] [PATCH v5 09/55] 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: Sun, 25 Jun 2023 17:00:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55474@debbugs.gnu.org Cc: ngraves@ngraves.fr, Lars-Dominik Braun , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by 55474-submit@debbugs.gnu.org id=B55474.168771236223018 (code B ref 55474); Sun, 25 Jun 2023 17:00:06 +0000 Received: (at 55474) by debbugs.gnu.org; 25 Jun 2023 16:59:22 +0000 Received: from localhost ([127.0.0.1]:43336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDT58-0005zB-3z for submit@debbugs.gnu.org; Sun, 25 Jun 2023 12:59:22 -0400 Received: from 2.mo576.mail-out.ovh.net ([178.33.251.80]:51095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDT51-0005yd-GP for 55474@debbugs.gnu.org; Sun, 25 Jun 2023 12:59:18 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.16.177]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 2CBEA2427C for <55474@debbugs.gnu.org>; Sun, 25 Jun 2023 16:59:14 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-krj4d (unknown [10.110.115.64]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 5BF621FD5B; Sun, 25 Jun 2023 16:59:13 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-krj4d with ESMTPSA id FX5iEmFymGQC+wEAJGzitw (envelope-from ); Sun, 25 Jun 2023 16:59:13 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S0044c4b8256-0994-4142-b4f0-4cf08b6c6062, AE91E074BBD8CB582EBAD64A2EE525CF9E6269E3) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 80.215.66.29 Date: Sun, 25 Jun 2023 18:57:10 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: <79ade078335720d3a5595676a65788789415bce0.1687712245.git.ngraves@ngraves.fr> References: <79ade078335720d3a5595676a65788789415bce0.1687712245.git.ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 8242150270358643426 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrgeehtddguddthecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpefhffethefhudelgfetkeffuddthfdtgfeljeeuhefgieeljeekueekieeugfeileenucffohhmrghinhephhhtthhpfihrrghpphgvrhhsthgvshhtshdrphihnecukfhppeduvdejrddtrddtrddupdektddrvdduhedrieeirddvledpfeejrdehledrudegvddruddutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehgeejgeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejiedpmhhouggvpehsmhhtphhouhht 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