commit:     40a9c7fd01f15066f6b3f091cdb4367cc511c732
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 11:20:04 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 11:56:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40a9c7fd

dev-python/adblock: skip test using dev-python/toml

Deprecated and test is intended for upstream, checking that the
changelog's version matches Cargo.toml doesn't mean much here.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-python/adblock/adblock-0.6.0.ebuild | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/dev-python/adblock/adblock-0.6.0.ebuild 
b/dev-python/adblock/adblock-0.6.0.ebuild
index 517d704e4f5e..eb67379a38c4 100644
--- a/dev-python/adblock/adblock-0.6.0.ebuild
+++ b/dev-python/adblock/adblock-0.6.0.ebuild
@@ -83,18 +83,22 @@ LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT 
MPL-2.0"
 SLOT="0"
 KEYWORDS="amd64 ~arm64 ~x86"
 
-BDEPEND="test? ( dev-python/toml[${PYTHON_USEDEP}] )"
-
 distutils_enable_tests pytest
 
 QA_FLAGS_IGNORED=".*/adblock.*.so"
 
 DOCS=( CHANGELOG.md README.md )
 
+EPYTEST_IGNORE=(
+       # not very meaningful here (e.g. validates changelog),
+       # and needs the deprecated dev-python/toml
+       tests/test_metadata.py
+)
+
 src_compile() {
        distutils-r1_src_compile
 
-       # tests try to find Cargo.toml + adblock/adblock.pyi in current
-       # directory but will fail if pytest finds init in ./adblock
+       # prevent pytest from using ./adblock that lack the built module
+       # but the keep directory given tests check ./adblock/adblock.pyi
        rm adblock/__init__.py || die
 }

Reply via email to