From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/
Date: Tue, 17 Aug 2021 19:25:33 +0000 (UTC) [thread overview]
Message-ID: <1629228329.53a44c14536cabb49b1d28a5761174798ff42ed8.mgorny@gentoo> (raw)
commit: 53a44c14536cabb49b1d28a5761174798ff42ed8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 17 19:24:21 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 17 19:25:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a44c14
dev-python/pytest-trio: Fix tests w/ pytest-asyncio installed
Closes: https://bugs.gentoo.org/801631
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index d4e3ebf6eb2..371f976c7b9 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -41,3 +41,11 @@ python_prepare_all() {
mv pytest_trio/_tests/conftest.py conftest.py || die
distutils-r1_python_prepare_all
}
+
+python_test() {
+ # disable autoloading pytest-asyncio in nested pytest calls
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ # since we disabled autoloading, force loading pytest-trio
+ local -x PYTEST_PLUGINS=pytest_trio.plugin
+ epytest
+}
next reply other threads:[~2021-08-17 19:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-17 19:25 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-14 11:59 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/ Michał Górny
2025-02-16 18:44 Michał Górny
2024-06-14 15:55 Michał Górny
2024-02-03 15:09 Michał Górny
2023-05-30 16:18 Michał Górny
2023-03-17 15:23 Michał Górny
2022-12-10 8:57 Michał Górny
2022-12-10 8:50 Arthur Zamarin
2022-11-04 6:13 Michał Górny
2022-05-27 19:48 Michał Górny
2022-05-27 9:07 Jakov Smolić
2022-05-15 6:07 Michał Górny
2022-05-06 13:22 Michał Górny
2022-04-25 18:41 Sam James
2022-04-07 9:14 Michał Górny
2022-04-07 9:14 Michał Górny
2021-11-19 6:41 Sam James
2021-11-18 9:09 Sam James
2021-11-18 4:05 Sam James
2021-09-25 16:37 Sam James
2021-09-04 21:39 Sam James
2021-08-31 17:39 Sam James
2021-08-30 7:26 Agostino Sarubbo
2021-08-30 1:27 Sam James
2021-08-17 19:37 Michał Górny
2021-08-17 17:15 Marek Szuba
2021-07-24 15:22 Sam James
2021-07-17 4:39 Sam James
2021-07-12 22:11 Sam James
2021-07-12 21:59 Sam James
2021-06-27 15:52 Andrew Ammerlaan
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=1629228329.53a44c14536cabb49b1d28a5761174798ff42ed8.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