From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uCunBvA+V2V3NwEA9RJhRA:P1 (envelope-from ) for ; Fri, 17 Nov 2023 11:22:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uCunBvA+V2V3NwEA9RJhRA (envelope-from ) for ; Fri, 17 Nov 2023 11:22:40 +0100 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 08B2A15D2A for ; Fri, 17 Nov 2023 11:22:40 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=EaGFx7TR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700216560; a=rsa-sha256; cv=none; b=EmVrnq1RAjQPHGIazv6pj0jzRXUhwYSI4Xokv48cMZECpJETvqpoJyJ6r3wFE2/PL65Tn7 kV8tQByxqWWwEJMPrzGlWDjrnb7pRq3ygNuE4eZEA8Jc+EP9PHSbFWAhtYAhwWu2vyqcVw hxPOyY7JSzFWmJxob3LvL43RETf9S3x6OxgoSYTUxhxMMuCgBeXIwuZMvMR8Lld/ZlTgRq er2dUJaQOD7lyBC1fZWm+WwII3i6ohtv226rWfyQexAzeQKUySjbvluctaJnKvaTzr+jmn 7brFSNugWbcrDdaa2mvjtz1OOkdSxP1dH6x7tgKidK8T0+03vv+Dl6jLwfNp1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=EaGFx7TR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700216560; 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=sJSIWd9VWFuvrTqaWRRCbTfGGVstizCn1ics676di5E=; b=SYZ3b+LdXSaWdo1jBdQsVVg0FvHM5UiPz0UGWY0ptV+6+YMC/HDwCR9Iq6+tgnzC0jFZG3 9dPO0JPxKpmEuznzD9ef/WV+tYkaag05Ap5gig6674ByGWDVu6oODwTUPdoV4DhQN1B5iR vb1HTIbLxfH0ard7pxjk6ccNEf9+7sls4OwpfHDcQ35mraoov3jC7LKER1vOZngbxugdpl PdqTpF3UK/FncMiocacHc100qeCvtZ1c3IvnSYSN3Sr/QvxKsCMPH9PgLK2rFFGOV50sYi nCk+vMqNAAb73mtLfVmJ4i5sGrLAGyhinbjC5cVtj/EGm716XQi9cbW+bgfrXg== 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 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 08B2A15D2A X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.49 X-Spam-Score: -3.49 X-TUID: xAbKZt43x6a4 * 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 -- 2.41.0