summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-07-09 22:00:26 +0200
committerMichał Górny <mgorny@gentoo.org>2019-07-09 22:00:26 +0200
commit3142b42de6973acc4a81c4d8a33fd59252023d64 (patch)
tree95b69073a3af2bce42319eec572995dd3d967ae5 /dev-python/cmd2
parentdev-python/cmd2: Bump to 0.9.14, fix tests (diff)
downloadgentoo-3142b42de6973acc4a81c4d8a33fd59252023d64.tar.gz
gentoo-3142b42de6973acc4a81c4d8a33fd59252023d64.tar.bz2
gentoo-3142b42de6973acc4a81c4d8a33fd59252023d64.zip
dev-python/cmd2: Use virtx to reenable selection buffer tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/cmd2')
-rw-r--r--dev-python/cmd2/cmd2-0.9.14.ebuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/dev-python/cmd2/cmd2-0.9.14.ebuild b/dev-python/cmd2/cmd2-0.9.14.ebuild
index 4436ff15f8fb..5901eaf47db5 100644
--- a/dev-python/cmd2/cmd2-0.9.14.ebuild
+++ b/dev-python/cmd2/cmd2-0.9.14.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python{3_5,3_6,3_7} )
-inherit distutils-r1
+inherit distutils-r1 virtualx
DESCRIPTION="Extra features for standard library's cmd module"
HOMEPAGE="https://github.com/python-cmd2/cmd2"
@@ -32,15 +32,12 @@ DEPEND="
)
"
-python_prepare_all() {
- # disable test relying on paste buffer
- sed -i -e 's:test_send_to_paste_buffer:_&:' tests/test_cmd2.py || die
-
- distutils-r1_python_prepare_all
-}
-
python_test() {
# test rely on very specific text wrapping...
local -x COLUMNS=80
pytest -vv || die
}
+
+src_test() {
+ virtx distutils-r1_src_test
+}