dev-python/cssutils: Backport fix for test failures on pypy

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2015-11-26 10:27:15 +01:00
parent 38b67633ef
commit d924168b21
2 changed files with 36 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/mock[${PYTHON_USEDEP}] )"
PATCHES=(
"${FILESDIR}"/${P}-pypy-test-backport.patch
)
python_prepare_all() {
# Disable test failing with dev-python/pyxml installed.
if has_version dev-python/pyxml; then
@@ -35,8 +39,6 @@ python_prepare_all() {
}
python_test() {
# https://bitbucket.org/cthedot/cssutils/issues/55
[[ "${EPYTHON}" =~ "pypy" ]] && return
ln -s "${S}/sheets" "${BUILD_DIR}/sheets" || die
# esetup.py test
# exclude tests that connect to the network