projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47afe99
)
dev-python/pathlib2: Fix tests not to use broken private API
author
Michał Górny
<mgorny@gentoo.org>
Sun, 4 Mar 2018 08:36:58 +0000
(09:36 +0100)
committer
Michał Górny
<mgorny@gentoo.org>
Sun, 4 Mar 2018 11:19:29 +0000
(12:19 +0100)
dev-python/pathlib2/pathlib2-2.3.0.ebuild
patch
|
blob
|
history
diff --git
a/dev-python/pathlib2/pathlib2-2.3.0.ebuild
b/dev-python/pathlib2/pathlib2-2.3.0.ebuild
index 7f4dcb53acebf77f8d1871f0d124d340688e6d64..1a09a8dd7c8d003b853042dd1cd621b1fe5f3620 100644
(file)
--- 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