commit:     11ac9aad456a4852bd959d8fe9b409b47a7d2be9
Author:     Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 27 01:47:52 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Nov 27 01:49:51 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ac9aad

dev-python/pycountry: fix tests

* Tests are successful on both amd64 and arm64 but pytest was leaving behind the
.pytest_cache dir causing a subsequent merge to fail.

* add the cache_dir option to pytest call so that tests are run from ${T}

Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 dev-python/pycountry/pycountry-18.5.26.ebuild | 2 +-
 dev-python/pycountry/pycountry-19.8.18.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pycountry/pycountry-18.5.26.ebuild 
b/dev-python/pycountry/pycountry-18.5.26.ebuild
index bf3621a2c76..1831d0f30e7 100644
--- a/dev-python/pycountry/pycountry-18.5.26.ebuild
+++ b/dev-python/pycountry/pycountry-18.5.26.ebuild
@@ -26,6 +26,6 @@ python_test() {
        if [[ ${EPYTHON} == pypy* ]]; then
                sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py 
|| die
        fi
-       pytest -vv || die
+       pytest -o cache_dir="${T}" -vv || die
        popd > /dev/null || die
 }

diff --git a/dev-python/pycountry/pycountry-19.8.18.ebuild 
b/dev-python/pycountry/pycountry-19.8.18.ebuild
index 99429b4ab6c..4e711c93a32 100644
--- a/dev-python/pycountry/pycountry-19.8.18.ebuild
+++ b/dev-python/pycountry/pycountry-19.8.18.ebuild
@@ -26,6 +26,6 @@ python_test() {
        if [[ ${EPYTHON} == pypy* ]]; then
                sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py 
|| die
        fi
-       pytest -vv || die
+       pytest -o cache_dir="${T}" -vv || die
        popd > /dev/null || die
 }

Reply via email to