From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0D5E15803E for ; Tue, 2 Jan 2024 19:28:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30C0F2BC02D; Tue, 2 Jan 2024 19:28:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 143252BC02D for ; Tue, 2 Jan 2024 19:28:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 28E5E34069F for ; Tue, 2 Jan 2024 19:28:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8208FAC2 for ; Tue, 2 Jan 2024 19:28:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1704223707.2225bfaffcdde4b96416121a33a92fd6e92815da.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bcrypt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/bcrypt/bcrypt-4.1.2.ebuild X-VCS-Directories: dev-python/bcrypt/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2225bfaffcdde4b96416121a33a92fd6e92815da X-VCS-Branch: master Date: Tue, 2 Jan 2024 19:28:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 30f61936-ac22-4703-8133-9c97b379c752 X-Archives-Hash: d1e186d3e833ecca64497687eca85674 commit: 2225bfaffcdde4b96416121a33a92fd6e92815da Author: Michał Górny gentoo org> AuthorDate: Tue Jan 2 18:26:30 2024 +0000 Commit: Michał Górny gentoo 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 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 +}