commit:     2c2fea509c1f77ab54f4e3857488402607a41cd5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 15:27:20 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 15:27:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c2fea50

dev-python/rq: Remove the test requiring <dev-python/sentry-sdk-2

Closes: https://bugs.gentoo.org/934735
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rq/rq-1.16.2.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-python/rq/rq-1.16.2.ebuild b/dev-python/rq/rq-1.16.2.ebuild
index 936514338ab0..84bf982d2348 100644
--- a/dev-python/rq/rq-1.16.2.ebuild
+++ b/dev-python/rq/rq-1.16.2.ebuild
@@ -27,7 +27,6 @@ BDEPEND="
        test? (
                dev-db/redis
                dev-python/psutil[${PYTHON_USEDEP}]
-               <dev-python/sentry-sdk-2[${PYTHON_USEDEP}]
        )
 "
 
@@ -55,3 +54,13 @@ src_test() {
        # Clean up afterwards
        kill "$(<"${redis_pid}")" || die
 }
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # requires <sentry-sdk-2
+               tests/test_sentry.py::TestSentry::test_failure_capture
+       )
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+}

Reply via email to