From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A09E7139345 for ; Sun, 25 Jul 2021 08:41:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBCE7E0CAC; Sun, 25 Jul 2021 08:41:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B10AFE0CAC for ; Sun, 25 Jul 2021 08:41:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 83AA733DF47 for ; Sun, 25 Jul 2021 08:41:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D09F5857 for ; Sun, 25 Jul 2021 08:41:38 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1627202494.0a7b0f4e728fae4449d2872fe0a3d8d7820381fe.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild X-VCS-Directories: dev-python/sqlalchemy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0a7b0f4e728fae4449d2872fe0a3d8d7820381fe X-VCS-Branch: master Date: Sun, 25 Jul 2021 08:41:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8f7f9b06-5374-46a6-a6a9-4420f3268087 X-Archives-Hash: ddd496919817f1f3303a8692d44799b7 commit: 0a7b0f4e728fae4449d2872fe0a3d8d7820381fe Author: Michał Górny gentoo org> AuthorDate: Sun Jul 25 08:39:58 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 25 08:41:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a7b0f4e dev-python/sqlalchemy: Skip some tests if greenlet is not installed Reported by Dakon. Signed-off-by: Michał Górny gentoo.org> dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild | 26 +++++++++++++++++++++++++- dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild | 26 +++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild index 2af55cf93bd..d3f78cc80f2 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.20.ebuild @@ -44,8 +44,32 @@ src_prepare() { } python_test() { + local deselect=() + if [[ ${EPYTHON} != pypy3 ]] && + ! has_version -b "dev-python/greenlet[${PYTHON_USEDEP}]" + then + # skip tests requiring greenlet + deselect+=( + test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_lazy_init + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_async_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_fallback_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_no_greenlet + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_contextvars + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_ok + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_propagate_cancelled + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_require_await + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_sync_error + 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/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_error_other_loop + 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 + # Disable tests hardcoding function call counts specific to Python versions. - epytest --ignore test/aaa_profiling \ + epytest --ignore test/aaa_profiling ${deselect[@]/#/--deselect } \ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" } diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild index 144d57d9ca1..6203e2c692f 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.4.22.ebuild @@ -44,8 +44,32 @@ src_prepare() { } python_test() { + local deselect=() + if [[ ${EPYTHON} != pypy3 ]] && + ! has_version -b "dev-python/greenlet[${PYTHON_USEDEP}]" + then + # skip tests requiring greenlet + deselect+=( + test/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_lazy_init + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_async_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_fallback_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_error + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_await_only_no_greenlet + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_contextvars + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_ok + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_propagate_cancelled + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_require_await + test/base/test_concurrency_py3k.py::TestAsyncioCompat::test_sync_error + 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/base/test_concurrency_py3k.py::TestAsyncAdaptedQueue::test_error_other_loop + 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 + # Disable tests hardcoding function call counts specific to Python versions. - epytest --ignore test/aaa_profiling \ + epytest --ignore test/aaa_profiling ${deselect[@]/#/--deselect } \ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" }