app-crypt/certbot: fix testing, again

Closes: https://bugs.gentoo.org/708506
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
This commit is contained in:
Matthew Thode
2020-02-06 16:56:10 -06:00
parent 2243f67b0f
commit 897be22576
2 changed files with 14 additions and 18 deletions

View File

@@ -38,14 +38,12 @@ RDEPEND="
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="
${CDEPEND}
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
DEPEND="${CDEPEND}"
python_test() {
# acme is not installed, removing it here is fine, the dir just confuses tests
rm -R ../acme
pytest -vv ${PN} || die
distutils_enable_tests pytest
python_prepare_all() {
# required as deps of deps can trigger this too...
echo ' ignore:.*collections\.abc:DeprecationWarning' >> ../pytest.ini
distutils-r1_python_prepare_all
}

View File

@@ -38,14 +38,12 @@ RDEPEND="
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="
${CDEPEND}
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
DEPEND="${CDEPEND}"
python_test() {
# acme is not installed, removing it here is fine, the dir just confuses tests
rm -R ../acme
pytest -vv ${PN} || die
distutils_enable_tests pytest
python_prepare_all() {
# required as deps of deps can trigger this too...
echo ' ignore:.*collections\.abc:DeprecationWarning' >> ../pytest.ini
distutils-r1_python_prepare_all
}