commit: a7133a4442c67b7db964b81bd94e2058561dd8d9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Dec 25 16:21:18 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 25 16:21:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7133a44
dev-python/pytest-mock: Remove obsolete py.code import Closes: https://bugs.gentoo.org/888215 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pytest-mock/pytest-mock-3.10.0.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild index 6266e8ce070c..c71b9b8faec7 100644 --- a/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.10.0.ebuild @@ -31,6 +31,12 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # obsolete, upst. e2016928db1147a2a46de6ee9fa878ca0e9d8fc8 + sed -i -e '/import py\.code/d' 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