diff options
author | Sam James <sam@gentoo.org> | 2020-12-08 22:55:55 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-12-08 22:56:07 +0000 |
commit | d4b796949f582fea64eb312e018b05f0daef66a0 (patch) | |
tree | 17a8cb3ea303cc836860337e2dcb4053a00560c7 /dev-python/mock | |
parent | net-analyzer/snort: migrate to lua-single.eclass (diff) | |
download | gentoo-d4b796949f582fea64eb312e018b05f0daef66a0.tar.gz gentoo-d4b796949f582fea64eb312e018b05f0daef66a0.tar.bz2 gentoo-d4b796949f582fea64eb312e018b05f0daef66a0.zip |
dev-python/mock: avoid pytest (even more)
Closes: https://bugs.gentoo.org/759142
Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/mock')
-rw-r--r-- | dev-python/mock/mock-4.0.2.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-python/mock/mock-4.0.2.ebuild b/dev-python/mock/mock-4.0.2.ebuild index b76c0acda0b4..d658150ed21e 100644 --- a/dev-python/mock/mock-4.0.2.ebuild +++ b/dev-python/mock/mock-4.0.2.ebuild @@ -23,6 +23,11 @@ RDEPEND=" DEPEND="${RDEPEND} >=dev-python/setuptools-17.1[${PYTHON_USEDEP}]" +src_prepare() { + sed -i -e '/ pytest.*/d' setup.cfg || die + distutils-r1_src_prepare +} + python_test() { # Upstream supports running tests only in their dream pristine # environment. pytest doesn't work at all if mock is already @@ -40,6 +45,9 @@ python_test() { mock/tests/testmock.py || die fi + # Avoid pytest dependency + sed -i -e '/import pytest/d' mock/tests/testhelpers.py || die + "${EPYTHON}" -m unittest discover -v || die "Tests failed with ${EPYTHON}" } |