commit: c0e466a9fee41408c85478a2cd967fa7904bbbc0 Author: Moritz Brunner <moritz.brunner+gentoo <AT> posteo <DOT> de> AuthorDate: Sun Dec 31 20:25:27 2023 +0000 Commit: Moritz Brunner <moritz.brunner+gentoo <AT> posteo <DOT> de> CommitDate: Mon Jan 1 12:26:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0e466a9
dev-python/PyPubSub: Change working directory for test runner The default pytest test runner doesn't find the test cases unless it is run in the correct directory. Closes: https://bugs.gentoo.org/916697 Signed-off-by: Moritz Brunner <moritz.brunner+gentoo <AT> posteo.de> dev-python/PyPubSub/PyPubSub-4.0.3.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev-python/PyPubSub/PyPubSub-4.0.3.ebuild b/dev-python/PyPubSub/PyPubSub-4.0.3.ebuild index 0b0e1876e4..c65dc950f9 100644 --- a/dev-python/PyPubSub/PyPubSub-4.0.3.ebuild +++ b/dev-python/PyPubSub/PyPubSub-4.0.3.ebuild @@ -28,8 +28,9 @@ BDEPEND=" dev-python/pytest[${PYTHON_USEDEP}] )" +distutils_enable_tests pytest + python_test() { - py.test -v -v || die + cd tests/suite + distutils-r1_python_test } - -distutils_enable_tests pytest
