diff options
author | 2018-03-04 09:36:58 +0100 | |
---|---|---|
committer | 2018-03-04 12:19:29 +0100 | |
commit | 1f83cc2bc2ef20a1df3012035b97630fa570c6d2 (patch) | |
tree | 413dc637c3ef23121a9824cc69b0c4aecb5a5794 /dev-python | |
parent | dev-python/pathlib2: Run both test variants (diff) | |
download | gentoo-1f83cc2bc2ef20a1df3012035b97630fa570c6d2.tar.gz gentoo-1f83cc2bc2ef20a1df3012035b97630fa570c6d2.tar.bz2 gentoo-1f83cc2bc2ef20a1df3012035b97630fa570c6d2.zip |
dev-python/pathlib2: Fix tests not to use broken private API
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pathlib2/pathlib2-2.3.0.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-python/pathlib2/pathlib2-2.3.0.ebuild b/dev-python/pathlib2/pathlib2-2.3.0.ebuild index 7f4dcb53aceb..1a09a8dd7c8d 100644 --- a/dev-python/pathlib2/pathlib2-2.3.0.ebuild +++ b/dev-python/pathlib2/pathlib2-2.3.0.ebuild @@ -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 |