commit:     63ae68616aa319862fc1f0e6e92546bf50d7be99
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu Apr  2 19:50:51 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Apr  2 19:50:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=63ae6861

dev-python/cchardet: fix tests, works for me

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 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 2af46de..fb015a3 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
+}

Reply via email to