summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-10-21 16:30:35 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-21 16:34:03 +0200
commit58b311e3d36cb5a89d2e97261a91cec84ff43a41 (patch)
treedf4af74bc4c0f9898699977d86aecc8d3d62ba74 /dev-python
parentdev-python/python-engineio: Remove old (diff)
downloadgentoo-58b311e3d36cb5a89d2e97261a91cec84ff43a41.tar.gz
gentoo-58b311e3d36cb5a89d2e97261a91cec84ff43a41.tar.bz2
gentoo-58b311e3d36cb5a89d2e97261a91cec84ff43a41.zip
dev-python/python-engineio: Remove test dep on eventlet
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/python-engineio/python-engineio-4.3.4.ebuild33
1 files changed, 12 insertions, 21 deletions
diff --git a/dev-python/python-engineio/python-engineio-4.3.4.ebuild b/dev-python/python-engineio/python-engineio-4.3.4.ebuild
index 894a35d40699..d5597b754d92 100644
--- a/dev-python/python-engineio/python-engineio-4.3.4.ebuild
+++ b/dev-python/python-engineio/python-engineio-4.3.4.ebuild
@@ -28,13 +28,8 @@ RDEPEND="
dev-python/websocket-client[${PYTHON_USEDEP}]
"
# Can use eventlet, werkzeug, or gevent, but no tests for werkzeug
-# eventlet doesn't yet support Python 3.10, so let's work around it
BDEPEND="
test? (
- $(python_gen_cond_dep '
- dev-python/eventlet[${PYTHON_USEDEP}]
- ' python3_{8,9} )
-
dev-python/gevent[${PYTHON_USEDEP}]
dev-python/tornado[${PYTHON_USEDEP}]
dev-python/websockets[${PYTHON_USEDEP}]
@@ -45,19 +40,15 @@ distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/alabaster
-python_test() {
- if ! has_version "dev-python/eventlet[${PYTHON_USEDEP}]"; then
- local EPYTEST_IGNORE=(
- tests/common/test_async_eventlet.py
- )
-
- local EPYTEST_DESELECT=(
- tests/common/test_server.py::TestServer::test_async_mode_eventlet
- tests/common/test_server.py::TestServer::test_connect
- tests/common/test_server.py::TestServer::test_service_task_started
- tests/common/test_server.py::TestServer::test_upgrades
- )
- fi
-
- epytest
-}
+EPYTEST_IGNORE=(
+ # eventlet is masked for removal
+ tests/common/test_async_eventlet.py
+)
+
+EPYTEST_DESELECT=(
+ # also eventlet
+ tests/common/test_server.py::TestServer::test_async_mode_eventlet
+ tests/common/test_server.py::TestServer::test_connect
+ tests/common/test_server.py::TestServer::test_service_task_started
+ tests/common/test_server.py::TestServer::test_upgrades
+)