public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jinja2/
Date: Sun, 22 Dec 2024 17:04:56 +0000 (UTC)	[thread overview]
Message-ID: <1734887091.6405e6f39879e819719f5f0950b4c8c164496d70.mgorny@gentoo> (raw)

commit:     6405e6f39879e819719f5f0950b4c8c164496d70
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 22 17:01:28 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 17:04:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6405e6f3

dev-python/jinja2: Disable trio tests when it is not installed

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

 dev-python/jinja2/jinja2-3.1.5.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-python/jinja2/jinja2-3.1.5.ebuild b/dev-python/jinja2/jinja2-3.1.5.ebuild
index 256a32846e84..c194a64b9b22 100644
--- a/dev-python/jinja2/jinja2-3.1.5.ebuild
+++ b/dev-python/jinja2/jinja2-3.1.5.ebuild
@@ -39,6 +39,19 @@ src_prepare() {
 	distutils-r1_src_prepare
 }
 
+python_test() {
+	local EPYTEST_IGNORE=()
+	if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then
+		EPYTEST_IGNORE+=(
+			tests/test_async.py
+			tests/test_async_filters.py
+		)
+	fi
+
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest
+}
+
 pkg_postinst() {
 	if ! has_version dev-python/babel; then
 		elog "For i18n support, please emerge dev-python/babel."


             reply	other threads:[~2024-12-22 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-22 17:04 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-06  3:31 [gentoo-commits] repo/gentoo:master commit in: dev-python/jinja2/ Michał Górny
2025-02-16 14:46 Michał Górny
2025-01-11  9:05 Sam James
2024-12-22  8:07 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1734887091.6405e6f39879e819719f5f0950b4c8c164496d70.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox