From patchwork Fri Nov 17 12:16:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 56574 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 08F6D27BBEC; Fri, 17 Nov 2023 10:22:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS 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 EAB4027BBE9 for ; Fri, 17 Nov 2023 10:22:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3vyk-00016v-Sl; Fri, 17 Nov 2023 05:21:38 -0500 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 1r3vyO-0000xa-3I for guix-patches@gnu.org; Fri, 17 Nov 2023 05:21:18 -0500 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 1r3vyL-00057H-2b; Fri, 17 Nov 2023 05:21:14 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3vyJ-0001HY-6P; Fri, 17 Nov 2023 05:21:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Fri, 17 Nov 2023 10:21:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67237 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67237@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart Received: via spool by 67237-submit@debbugs.gnu.org id=B67237.17002164514607 (code B ref 67237); Fri, 17 Nov 2023 10:21:11 +0000 Received: (at 67237) by debbugs.gnu.org; 17 Nov 2023 10:20:51 +0000 Received: from localhost ([127.0.0.1]:45226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3vxz-0001C9-8V for submit@debbugs.gnu.org; Fri, 17 Nov 2023 05:20:51 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:44121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3vxi-00018E-Ng for 67237@debbugs.gnu.org; Fri, 17 Nov 2023 05:20:35 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-32ded3eb835so1338204f8f.0 for <67237@debbugs.gnu.org>; Fri, 17 Nov 2023 02:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700216429; x=1700821229; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sJSIWd9VWFuvrTqaWRRCbTfGGVstizCn1ics676di5E=; b=EaGFx7TRnb6hBfhsX3D9aUbbstr7d/4INlG6xrRj27RE1vGJUtY28dkEL0EMF56cGM 1Yy0J38q7sgOJ9qank+BX3kKiVVG+9kgVzHba9gcyFoZ5qmBCvAlx08oftyZh8PwNl4S 4Z0ta+I+m1ZpFBN80ppJ87zhWi3Jcp4A4L9xGxr1F0oSdzAyAynse3lZojjy7LYHsK1Y uiQ1yz/RTzEviuN7fCt3lCLiOAoBuh617jWd7WMtXL2qwDP0aRtIg5FwOg8jXkurlxIY EjlhfaWL3ZVPnkpCbJTZRtJDIYwLcSBRzj31+ORQkwUMUbpuHf6a4Caeusnafu2W5P2p hPqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700216429; x=1700821229; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sJSIWd9VWFuvrTqaWRRCbTfGGVstizCn1ics676di5E=; b=NiOfck7sCsbY2bCaPvp7gfA9HWZazWv6gqyNy1nzplicrMtRgLZ6MqfT7q7Nd+pPtA CCYEFjDj2iHhLUKxADTGI3DGzVfxani7lNaZJlL4cyJ/lOGlg61jJAdqVHZ4TatBg330 2YBmmG+8qwlwRtdzHX/j9Ndi6I8czRrQ0eHryOYybb8rmvtwOfodZEbFuPlTB2Wd7JKq 0iU1mri/tqoxPdkspJAko25KK0CcIbu0GyDBN7un54C6PyGquI/HZY67o7U3eFnBntJ2 0xvJI8Mj2jQYsEPjVUKVBbRBOHYpzy+sfZh+1X6KV660qXpGtnphjTtMtuo4l98fBEFZ iVxg== X-Gm-Message-State: AOJu0YyEfVFIjiOYFxvM7Tb4KyvBHVqicpkjis3B/FryGCzqeOsXa2Ow 0a86YTq/YMEqgVd68TgOA3xnMqULT7aCuw== X-Google-Smtp-Source: AGHT+IGzmddOnQpZqYBCAgC09JBjYrWf8ySyH96hcEc8bfEWToTEJd1cJO5RVj2i2pUL7H97Lzgemw== X-Received: by 2002:adf:f40d:0:b0:32d:b031:9719 with SMTP id g13-20020adff40d000000b0032db0319719mr10515275wro.42.1700216428875; Fri, 17 Nov 2023 02:20:28 -0800 (PST) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id t4-20020a5d4604000000b0032fbd0c7d04sm1858856wrq.55.2023.11.17.02.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:28 -0800 (PST) From: Sharlatan Hellseher Date: Fri, 17 Nov 2023 12:16:10 +0000 Message-ID: <9fca2e60618792c74917e2f0e40f1f61ffd8b7b4.1700222319.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-extension-helpers): Enable tests. [arguments]{phases}: Add 'prepare-test-environment phase. Change-Id: I6effa60f3ccd334d11b5f86162742f2272f737b1 --- gnu/packages/python-xyz.scm | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 318ce539db..6d3e30a91e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4254,9 +4254,22 @@ (define-public python-extension-helpers (sha256 (base32 "1rjha07ds633fb81hn3i2yzk3v2flbi6qa091ix4mkvrgk3gl6ya")))) (build-system pyproject-build-system) - ;; FIXME: pytest failed to load test suit, find out why. - ;; - _pytest.pathlib.ImportPathMismatchError: ('extension_helpers.conftes - (arguments (list #:tests? #f)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'prepare-test-environment + (lambda _ + ;; To solve pytest/conftest issue. Pytest tries to load all + ;; files with word 'test' in them. + ;; + ;; ImportError while loading conftest ... + ;; _pytest.pathlib.ImportPathMismatchError: ... + ;; + (call-with-output-file "pytest.ini" + (lambda (port) + (format port "[pytest] +python_files = test_*.py")))))))) (native-inputs (list python-coverage python-pytest