commit:     1249c1ff11b35bd003ce0c65ce7c3910c5aa1bfb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 27 13:15:43 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 27 13:46:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1249c1ff

dev-python/trio: Use EPYTEST_IGNORE for Internet tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/trio/trio-0.19.0.ebuild | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/dev-python/trio/trio-0.19.0.ebuild 
b/dev-python/trio/trio-0.19.0.ebuild
index 3a0aecc30f71..b02ca40ed6e5 100644
--- a/dev-python/trio/trio-0.19.0.ebuild
+++ b/dev-python/trio/trio-0.19.0.ebuild
@@ -52,17 +52,15 @@ EPYTEST_DESELECT=(
        trio/tests/test_exports.py::test_static_tool_sees_all_symbols
 )
 
+EPYTEST_IGNORE=(
+       # these tests require internet access
+       trio/tests/test_ssl.py
+       trio/tests/test_highlevel_ssl_helpers.py
+)
+
 distutils_enable_tests --install pytest
 distutils_enable_sphinx docs/source \
                                        dev-python/immutables \
                                        dev-python/sphinxcontrib-trio \
                                        dev-python/sphinx_rtd_theme \
                                        dev-python/towncrier
-
-python_prepare_all() {
-       # these tests require internet access
-       rm trio/tests/test_ssl.py || die
-       rm trio/tests/test_highlevel_ssl_helpers.py || die
-
-       distutils-r1_python_prepare_all
-}

Reply via email to