commit: bac9c667a80500194ff5d81e97463f253df7c7e2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 24 20:08:12 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 24 20:10:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bac9c667
dev-python/aiorpcX: Fix test failures when no resolver is available Closes: https://bugs.gentoo.org/771645 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/aiorpcX/aiorpcX-0.18.5.ebuild | 12 +++++++++++- dev-python/aiorpcX/aiorpcX-0.19.1.ebuild | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dev-python/aiorpcX/aiorpcX-0.18.5.ebuild b/dev-python/aiorpcX/aiorpcX-0.18.5.ebuild index 5daef298f5a..d5a8e748ca6 100644 --- a/dev-python/aiorpcX/aiorpcX-0.18.5.ebuild +++ b/dev-python/aiorpcX/aiorpcX-0.18.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -26,3 +26,13 @@ BDEPEND=" )" distutils_enable_tests pytest + +python_test() { + local deselect=( + # require Internet + tests/test_socks.py::TestSOCKSProxy::test_create_connection_resolve_good + ) + + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/aiorpcX/aiorpcX-0.19.1.ebuild b/dev-python/aiorpcX/aiorpcX-0.19.1.ebuild index 1dceb3bd58c..94411647b98 100644 --- a/dev-python/aiorpcX/aiorpcX-0.19.1.ebuild +++ b/dev-python/aiorpcX/aiorpcX-0.19.1.ebuild @@ -26,3 +26,13 @@ BDEPEND=" )" distutils_enable_tests pytest + +python_test() { + local deselect=( + # require Internet + tests/test_socks.py::TestSOCKSProxy::test_create_connection_resolve_good + ) + + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests failed with ${EPYTHON}" +}