dev-python/astroid: XFAIL xml test

This commit is contained in:
Michał Górny
2017-05-16 21:36:38 +02:00
parent b60a5f6e52
commit b83f8744e1

View File

@@ -38,8 +38,13 @@ DEPEND="
DISTUTILS_IN_SOURCE_BUILD=1
python_prepare_all() {
# Disable failing test
sed -i -e "/test_namespace_package_pth_support/a\\ return" astroid/tests/unittest_manager.py || die
# Disable failing tests
# TODO: investigate if it's our fault and how can we fix it
sed -i -e "s/test_namespace_package_pth_support/_&/" \
astroid/tests/unittest_manager.py || die
# we hack xml module, so it does not match what they expect...
sed -i -e "s/test_module_model/_&/" \
astroid/tests/unittest_object_model.py || die
distutils-r1_python_prepare_all
}