commit: 2225bfaffcdde4b96416121a33a92fd6e92815da Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Jan 2 18:26:30 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Jan 2 19:28:27 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2225bfaf
dev-python/bcrypt: Workaround pytest-asyncio cause test failures Explicitly specify the test directory to workaround a bug in pytest-asyncio that causes pytest to import modules that do not match `python_files`. Also disable plugin autoloading for good measure. Closes: https://bugs.gentoo.org/921119 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/bcrypt/bcrypt-4.1.2.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-python/bcrypt/bcrypt-4.1.2.ebuild b/dev-python/bcrypt/bcrypt-4.1.2.ebuild index 13ef2bcc7a45..aec5818cf956 100644 --- a/dev-python/bcrypt/bcrypt-4.1.2.ebuild +++ b/dev-python/bcrypt/bcrypt-4.1.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -88,3 +88,8 @@ BDEPEND=" QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/bcrypt/_bcrypt.*.so" distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests +}