summaryrefslogtreecommitdiff
path: root/dev-python/bcrypt
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-01-02 19:26:30 +0100
committerMichał Górny <mgorny@gentoo.org>2024-01-02 20:28:27 +0100
commit2225bfaffcdde4b96416121a33a92fd6e92815da (patch)
tree58f87e4a14e461a3969d5a2d6e70f3ae980315e6 /dev-python/bcrypt
parente2dabd04cd30dcd96d92ee80cf5cba26ae8ecc72 (diff)
downloadgentoo-2225bfaffcdde4b96416121a33a92fd6e92815da.tar.gz
gentoo-2225bfaffcdde4b96416121a33a92fd6e92815da.tar.bz2
gentoo-2225bfaffcdde4b96416121a33a92fd6e92815da.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/bcrypt')
-rw-r--r--dev-python/bcrypt/bcrypt-4.1.2.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/bcrypt/bcrypt-4.1.2.ebuild b/dev-python/bcrypt/bcrypt-4.1.2.ebuild
index 13ef2bcc7a453..aec5818cf956a 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
+}