dev-python/python-magic: Actually run tests

Actually run the tests from the package rather than CPython's own test
suite.

Closes: https://bugs.gentoo.org/659102
This commit is contained in:
Michał Górny
2018-07-18 16:17:53 +02:00
parent 484185fb11
commit 877c739695
2 changed files with 3 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ inherit distutils-r1
DESCRIPTION="Access the libmagic file type identification library"
HOMEPAGE="https://github.com/ahupp/python-magic"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/ahupp/python-magic/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -20,9 +20,6 @@ RDEPEND="sys-apps/file[-python]"
DEPEND="${DEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
# Needs MacOS python module, bug #659102
RESTRICT="test"
python_test() {
esetup.py test
"${EPYTHON}" test/test.py -v || die "Tests fail with ${EPYTHON}"
}