From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD48A15806E for ; Sat, 20 May 2023 18:11:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC207E07F0; Sat, 20 May 2023 18:11:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF775E07F0 for ; Sat, 20 May 2023 18:11:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF36633BE23 for ; Sat, 20 May 2023 18:11:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 370ABA65 for ; Sat, 20 May 2023 18:11:21 +0000 (UTC) From: "YiFei Zhu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "YiFei Zhu" Message-ID: <1684606252.9dad0b2b5daeaa25f1545b1c088dbfc96a51d7e6.zhuyifei1999@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/guppy3/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/guppy3/guppy3-3.1.3.ebuild X-VCS-Directories: dev-python/guppy3/ X-VCS-Committer: zhuyifei1999 X-VCS-Committer-Name: YiFei Zhu X-VCS-Revision: 9dad0b2b5daeaa25f1545b1c088dbfc96a51d7e6 X-VCS-Branch: dev Date: Sat, 20 May 2023 18:11:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bd8ec40d-3fd1-483e-b114-29904acae356 X-Archives-Hash: 50f00c02ef617188b9a706b109e689c1 commit: 9dad0b2b5daeaa25f1545b1c088dbfc96a51d7e6 Author: YiFei Zhu gmail com> AuthorDate: Sat May 20 18:06:28 2023 +0000 Commit: YiFei Zhu gmail com> CommitDate: Sat May 20 18:10:52 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9dad0b2b dev-python/guppy3: fix test to cd to "${T}" first Doesn't seem necessary at first but according to the guide [1] it could cause troubles if it's not enabled. Bugs have been observed in upsteam CI indeed when Python sees two copies of the source [2]. [1] https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions [2] https://github.com/zhuyifei1999/guppy3/issues/37 Signed-off-by: YiFei Zhu gmail.com> dev-python/guppy3/guppy3-3.1.3.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-python/guppy3/guppy3-3.1.3.ebuild b/dev-python/guppy3/guppy3-3.1.3.ebuild index 5b4ce183d..cadaab1a5 100644 --- a/dev-python/guppy3/guppy3-3.1.3.ebuild +++ b/dev-python/guppy3/guppy3-3.1.3.ebuild @@ -19,5 +19,6 @@ SLOT="0" KEYWORDS="~amd64 ~x86" python_test() { - "${EPYTHON}" guppy/heapy/test/test_all.py || die "tests failed" + cd "${T}" || die + "${EPYTHON}" "${S}"/guppy/heapy/test/test_all.py || die }