diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-29 16:53:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-04-01 11:36:35 +0200 |
commit | 1f35acddca01e91d4477f3d0340c47329517f474 (patch) | |
tree | 36caee8d804a0c134f7c40d1bb16b5f910e52018 /eclass | |
parent | distutils-r1.eclass: Remove more junk from .dist-info (diff) | |
download | gentoo-1f35acddca01e91d4477f3d0340c47329517f474.tar.gz gentoo-1f35acddca01e91d4477f3d0340c47329517f474.tar.bz2 gentoo-1f35acddca01e91d4477f3d0340c47329517f474.zip |
python-utils-r1.eclass: epytest, error out on missing async plugin
Explicitly error out if epytest is run without an appropriate async
plugin, and the test suite contains async tests. Currently, these tests
are skipped with a warning but that is usually a mistake, and one can
easily miss it when pytest-asyncio or a similar plugin is installed
on the test system. However, a missing dependency can result
in the tests being skipped afterwards on the tinderbox.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/35913
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-utils-r1.eclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index caa39813feec..bbf751399476 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1349,6 +1349,9 @@ epytest() { # override filterwarnings=error, we do not really want -Werror # for end users, as it tends to fail on new warnings from deps -Wdefault + # however, do error out if the package failed to load + # an appropriate async plugin + -Werror::pytest.PytestUnhandledCoroutineWarning # override color output "--color=${color}" # count is more precise when we're dealing with a large number |