summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-15 10:02:23 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-15 10:03:35 +0200
commit334a8bb141ba3c6ddd2735589193671e517cc12b (patch)
treeccfc2c5bfe990ac8096c511fbad1259b8bab8c86 /dev-python/anyio
parentdev-libs/nss-pem: remove unused patch(es) (diff)
downloadgentoo-334a8bb141ba3c6ddd2735589193671e517cc12b.tar.gz
gentoo-334a8bb141ba3c6ddd2735589193671e517cc12b.tar.bz2
gentoo-334a8bb141ba3c6ddd2735589193671e517cc12b.zip
dev-python/anyio: unrestrict test phase
skip tests for trio since this is not (yet) packaged Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/anyio')
-rw-r--r--dev-python/anyio/anyio-3.1.0.ebuild20
1 files changed, 16 insertions, 4 deletions
diff --git a/dev-python/anyio/anyio-3.1.0.ebuild b/dev-python/anyio/anyio-3.1.0.ebuild
index 53b2893ab605..d4d7d1e46906 100644
--- a/dev-python/anyio/anyio-3.1.0.ebuild
+++ b/dev-python/anyio/anyio-3.1.0.ebuild
@@ -18,10 +18,6 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-# This will pull in dev-python/trio and a whole bunch of other new things
-# And trio does not yet have a release compatible with python3.9.
-RESTRICT="test"
-
RDEPEND="
>=dev-python/idna-2.8[${PYTHON_USEDEP}]
>=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
@@ -40,3 +36,19 @@ distutils_enable_tests --install pytest
distutils_enable_sphinx docs \
dev-python/sphinx_rtd_theme \
dev-python/sphinx-autodoc-typehints
+
+python_prepare_all() {
+ # This will pull in dev-python/trio and a whole bunch of other new things
+ # And trio does not yet have a release compatible with python3.9.
+ rm tests/test_taskgroups.py || die
+ sed -i -e '/trio/d' tests/conftest.py || die
+ sed -i -e 's/test_cancel_scope_in_asyncgen_fixture/_&/' \
+ -e 's/test_autouse_async_fixture/_&/' \
+ -e 's/test_plugin/_&/' \
+ tests/test_pytest_plugin.py || die
+
+ # skip network test
+ sed -i -e 's/test_getaddrinfo/_&/' tests/test_sockets.py || die
+
+ distutils-r1_python_prepare_all
+}