From 63ae68616aa319862fc1f0e6e92546bf50d7be99 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 2 Apr 2020 21:50:51 +0200 Subject: [PATCH] dev-python/cchardet: fix tests, works for me Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/cchardet/cchardet-2.1.6.ebuild | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dev-python/cchardet/cchardet-2.1.6.ebuild b/dev-python/cchardet/cchardet-2.1.6.ebuild index 2af46deee3..fb015a38d5 100644 --- a/dev-python/cchardet/cchardet-2.1.6.ebuild +++ b/dev-python/cchardet/cchardet-2.1.6.ebuild @@ -15,12 +15,6 @@ LICENSE="MPL-1.1" SLOT="0" KEYWORDS="~amd64" -#tests fail with an import failure -# from cchardet import _cchardet -#ImportError: cannot import name '_cchardet' -#I tried to manually import _cchardet in ipython3 and it works ... -RESTRICT="test" - RDEPEND=" dev-python/chardet[${PYTHON_USEDEP}] " @@ -40,7 +34,6 @@ distutils_enable_tests nose # default #} -#python_test() { -# distutils_install_for_testing -# "${EPYTHON}" setup.py nosetest || die -#} +python_test() { + "${EPYTHON}" setup.py nosetests || die +}