commit: a6d0f7cb95ec0cafb4b7e2de124f2c7ed25e34fe Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon May 2 08:56:16 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon May 2 08:56:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d0f7cb
dev-python/sqlalchemy: Skip tests requiring greenlet if not avail. Closes: https://bugs.gentoo.org/842117 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> 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 d49130048380..d990b9e3bac3 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 f22213fbdeb6..4eb4a4e1ddec 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
