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 81B11158087 for ; Fri, 28 Jan 2022 23:01:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54FAD2BC04B; Fri, 28 Jan 2022 23:01:38 +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 3532B2BC04B for ; Fri, 28 Jan 2022 23:01:38 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53467343299 for ; Fri, 28 Jan 2022 23:01:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EED972C6 for ; Fri, 28 Jan 2022 23:01:33 +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: <1643410889.9103a16e1da48dae25563e59a213fcf0f97706b1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-mock/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-mock/pytest-mock-3.7.0.ebuild X-VCS-Directories: dev-python/pytest-mock/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9103a16e1da48dae25563e59a213fcf0f97706b1 X-VCS-Branch: master Date: Fri, 28 Jan 2022 23:01:33 +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: 1af50be9-8cbc-43c5-97e9-c6c5eee0e3d4 X-Archives-Hash: d7c6472edd5d47f8fdbc8430b3a40c14 commit: 9103a16e1da48dae25563e59a213fcf0f97706b1 Author: Michał Górny gentoo org> AuthorDate: Fri Jan 28 22:14:15 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 28 23:01:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9103a16e dev-python/pytest-mock: Disable plugin autoloading during tests Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-mock/pytest-mock-3.7.0.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild index 741a457784be..3e6c060c2c67 100644 --- a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild @@ -25,12 +25,10 @@ BDEPEND=" distutils_enable_tests pytest -src_prepare() { - sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die - distutils-r1_src_prepare -} - python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin + if has_version dev-python/mock; then local EPYTEST_DESELECT=( tests/test_pytest_mock.py::test_standalone_mock