commit: 9dad0b2b5daeaa25f1545b1c088dbfc96a51d7e6 Author: YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com> AuthorDate: Sat May 20 18:06:28 2023 +0000 Commit: YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> 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 <zhuyifei1999 <AT> 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 }