remove test
Package-Manager: portage-2.2.0_alpha166 RepoMan-Options: --force
This commit is contained in:
@@ -27,32 +27,6 @@ RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
cp genshi/filters/tests/html.py orig_html.py || die
|
||||
epatch "${FILESDIR}"/${P}-html_test.patch
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# The html_test.patch is needed only for python2.7 for now, breaks all other versions. The html.py needs
|
||||
# adjusting only to pass the tests for 2.7. Other ABIs still need the original filters/tests/html.py,
|
||||
# hence this long winded juggling appears the only method to set a viable genshi/filters/tests/html.py
|
||||
# for each python version. The test needed patching, instead they changed the genshi/filters/tests/html.py
|
||||
setHtmlpy() {
|
||||
for f in build-${PYTHON_ABI}; do
|
||||
if [[ ${PYTHON_ABI:2:3} < '7' || ${PYTHON_ABI:4:4} == "pypy" ]]; then
|
||||
mv genshi/filters/tests/html.py patched_html.py || die
|
||||
mv orig_html.py genshi/filters/tests/html.py || die
|
||||
"$(PYTHON)" setup.py test
|
||||
mv genshi/filters/tests/html.py orig_html.py
|
||||
mv patched_html.py genshi/filters/tests/html.py || die
|
||||
else
|
||||
"$(PYTHON)" setup.py test
|
||||
fi
|
||||
done
|
||||
}
|
||||
python_execute_function setHtmlpy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user