dev-python/webencodings: Backport patch to fix tests

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2016-01-18 09:29:45 +01:00
parent c3b67a4f55
commit 9d3711c161
2 changed files with 79 additions and 3 deletions

View File

@@ -24,13 +24,18 @@ DEPEND="${REDEPEND}
dev-python/pytest[${PYTHON_USEDEP}]
)"
# https://github.com/SimonSapin/python-webencodings/issues/2
RESTRICT=test
PATCHES=(
"${FILESDIR}"/${P}-test-fix-backport.patch
)
python_test() {
python_prepare_all(){
cat >> setup.cfg <<- EOF
[pytest]
python_files=test*.py
EOF
distutils-r1_python_prepare_all
}
python_test() {
py.test -v -v || die
}