summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-11 23:07:38 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-11 23:09:16 +0200
commita4b6a63eed6c602bff6c84b5cf9b1270e88415c8 (patch)
treea8883f2452e02aa8a194436418b5b30b3b63e6d4 /dev-python/incremental
parentdev-util/radare2: drop old (diff)
downloadgentoo-a4b6a63eed6c602bff6c84b5cf9b1270e88415c8.tar.gz
gentoo-a4b6a63eed6c602bff6c84b5cf9b1270e88415c8.tar.bz2
gentoo-a4b6a63eed6c602bff6c84b5cf9b1270e88415c8.zip
dev-python/incremental: Enable testing
Closes: https://bugs.gentoo.org/795450 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/incremental')
-rw-r--r--dev-python/incremental/incremental-21.3.0.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-python/incremental/incremental-21.3.0.ebuild b/dev-python/incremental/incremental-21.3.0.ebuild
index 4ac1a7c75523..c4e047f73387 100644
--- a/dev-python/incremental/incremental-21.3.0.ebuild
+++ b/dev-python/incremental/incremental-21.3.0.ebuild
@@ -16,7 +16,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/twisted[${PYTHON_USEDEP}] )"
+
+python_test() {
+ distutils_install_for_testing
+ trial incremental || die "Tests failed on ${EPYTHON}"
+}