From 11ac9aad456a4852bd959d8fe9b409b47a7d2be9 Mon Sep 17 00:00:00 2001 From: Aaron Bauman Date: Tue, 26 Nov 2019 20:47:52 -0500 Subject: [PATCH] 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 --- 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 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 } -- 2.26.2