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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2A0F158012 for ; Wed, 22 Sep 2021 07:18:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2C8CE07EF; Wed, 22 Sep 2021 07:18:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB1CAE07EF for ; Wed, 22 Sep 2021 07:18:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A8F3A342E26 for ; Wed, 22 Sep 2021 07:18:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 328EC104 for ; Wed, 22 Sep 2021 07:18:30 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1632295092.8034ddfe19a8668dcd1fe00f94f5f7d0679ab05a.arthurzam@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.6.1.ebuild X-VCS-Directories: dev-python/pytest-mock/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 8034ddfe19a8668dcd1fe00f94f5f7d0679ab05a X-VCS-Branch: master Date: Wed, 22 Sep 2021 07:18: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: bcf6268c-6a98-49b4-9685-1701328a4766 X-Archives-Hash: 3084f3ba8fe0fe15f1842b367631a0f1 commit: 8034ddfe19a8668dcd1fe00f94f5f7d0679ab05a Author: Arthur Zamarin gentoo org> AuthorDate: Wed Sep 22 07:18:09 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Sep 22 07:18:12 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8034ddfe dev-python/pytest-mock: fix running with pytest-xprocess installed Closes: https://bugs.gentoo.org/813061 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pytest-mock/pytest-mock-3.6.1.ebuild | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild index 8f048a9f899..3125f886d4a 100644 --- a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" @@ -19,14 +19,18 @@ BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" 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 deselect=() if has_version dev-python/mock; then - deselect+=( + local EPYTEST_DESELECT=( tests/test_pytest_mock.py::test_standalone_mock ) fi distutils_install_for_testing - epytest --assert=plain ${deselect[@]/#/--deselect } + epytest --assert=plain }