summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-14 07:20:04 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-14 07:56:39 -0400
commit40a9c7fd01f15066f6b3f091cdb4367cc511c732 (patch)
tree654966c579b11abcea6d0bc3b0f31f95c1793e0d /dev-python/adblock
parentgames-arcade/netris: fix build w/ upcoming clang16 + pass std=gnu89 (diff)
downloadgentoo-40a9c7fd01f15066f6b3f091cdb4367cc511c732.tar.gz
gentoo-40a9c7fd01f15066f6b3f091cdb4367cc511c732.tar.bz2
gentoo-40a9c7fd01f15066f6b3f091cdb4367cc511c732.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/adblock')
-rw-r--r--dev-python/adblock/adblock-0.6.0.ebuild12
1 files 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
}