From ff7a05438951774e4dfb68b0e97aa3d1a8677515 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sun, 26 Apr 2020 12:49:32 +0200 Subject: [PATCH] dev-python/socketio-client: Correcting tests Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay --- .../socketio-client/socketio-client-0.7.2.ebuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dev-python/socketio-client/socketio-client-0.7.2.ebuild b/dev-python/socketio-client/socketio-client-0.7.2.ebuild index e640738..ba11748 100644 --- a/dev-python/socketio-client/socketio-client-0.7.2.ebuild +++ b/dev-python/socketio-client/socketio-client-0.7.2.ebuild @@ -35,11 +35,16 @@ python_test() { # The import of SocketIO need be made with abs path to run the tests sed -e 's:from .. import:from socketIO_client import:' \ - -i ${REPO_PN}/tests/__init__.py || die + -i socketIO_client/tests/__init__.py || die + sed -e 's:from ..exceptions import:from socketIO_client.exceptions import:' \ + -i socketIO_client/tests/__init__.py || die - "${PYTHON}" ${REPO_PN}/tests/__init__.py || die "Tests failed under ${EPYTHON}" + "${PYTHON}" socketIO_client/tests/__init__.py || \ + die "Tests failed under ${EPYTHON}" # Return to original form for final install - sed -e 's:from socketIO_client import:from .. import:' \ - -i ${REPO_PN}/tests/__init__.py || die + sed -e 's:from socketIO_client import:from .. import:' \ + -i socketIO_client/tests/__init__.py || die + sed -e 's:from socketIO_client.exceptions import:from ..exceptions import:' \ + -i socketIO_client/tests/__init__.py || die }