From: Aaron Bauman Date: Wed, 27 Nov 2019 01:47:52 +0000 (-0500) Subject: dev-python/pycountry: fix tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11ac9aad456a4852bd959d8fe9b409b47a7d2be9;p=gentoo.git 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 --- diff --git a/dev-python/pycountry/pycountry-18.5.26.ebuild b/dev-python/pycountry/pycountry-18.5.26.ebuild index bf3621a2c760..1831d0f30e7b 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 99429b4ab6c9..4e711c93a320 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 }