commit:     65a814f3e12ce3e1e121514e7610cbafa4323fe4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  1 14:36:51 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  1 14:37:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65a814f3

dev-python/python-systemd: Change cwd instead of rming dir for tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/python-systemd/python-systemd-234-r2.ebuild | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dev-python/python-systemd/python-systemd-234-r2.ebuild 
b/dev-python/python-systemd/python-systemd-234-r2.ebuild
index 60d75ffb0ea8..9ad4a49314b1 100644
--- a/dev-python/python-systemd/python-systemd-234-r2.ebuild
+++ b/dev-python/python-systemd/python-systemd-234-r2.ebuild
@@ -32,13 +32,8 @@ python_compile() {
        distutils-r1_python_compile -j1
 }
 
-src_test() {
-       # prevent relative import
-       rm -r systemd || die
-       distutils-r1_src_test
-}
-
 python_test() {
        unset NOTIFY_SOCKET
+       cd "${T}" || die
        epytest --pyargs systemd -o cache_dir="${T}"
 }

Reply via email to