From a6d0f7cb95ec0cafb4b7e2de124f2c7ed25e34fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 2 May 2022 10:56:16 +0200 Subject: [PATCH] dev-python/sqlalchemy: Skip tests requiring greenlet if not avail. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/842117 Signed-off-by: Michał Górny --- dev-python/sqlalchemy/sqlalchemy-1.4.35.ebuild | 8 ++++++++ dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.35.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.35.ebuild index d491300483805..d990b9e3bac3b 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.4.35.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.35.ebuild @@ -49,6 +49,14 @@ python_test() { [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access ) + if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]" + "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]" + ) + fi # upstream's test suite is horribly hacky; it relies on disabling # the warnings plugin and turning warnings into errors; this also diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild index f22213fbdeb66..4eb4a4e1ddec2 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.36.ebuild @@ -49,6 +49,14 @@ python_test() { [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access ) + if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution + test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_run_sync + "test/engine/test_pool.py::PoolEventsTest::test_checkin_event_gc[True-_exclusions0]" + "test/engine/test_pool.py::QueuePoolTest::test_userspace_disconnectionerror_weakref_finalizer[True-_exclusions0]" + ) + fi # upstream's test suite is horribly hacky; it relies on disabling # the warnings plugin and turning warnings into errors; this also