dev-python/pathlib2: Fix tests not to use broken private API

This commit is contained in:
Michał Górny
2018-03-04 09:36:58 +01:00
parent 47afe993d2
commit 1f83cc2bc2

View File

@@ -24,6 +24,14 @@ DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )"
python_prepare_all() {
# stop using private Python API
# https://github.com/mcmtroffaes/pathlib2/issues/39
sed -i -e 's/support\.android_not_root/False/' test*.py || die
distutils-r1_python_prepare_all
}
python_test() {
"${EPYTHON}" test_pathlib2.py -v || die
"${EPYTHON}" test_pathlib2_with_py2_unicode_literals.py -v || die