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
}