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@posteo.de>
This commit is contained in:
Moritz Brunner 2023-12-31 21:25:27 +01:00
parent 231822dc2b
commit c0e466a9fe
No known key found for this signature in database
GPG Key ID: 8934F8136C8EFC7C

View File

@ -28,8 +28,9 @@ BDEPEND="
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest
python_test() {
cd tests/suite
distutils-r1_python_test
}