summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-31 16:54:14 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-31 17:42:25 +0200
commit8f6d004055cc12413fd9315034d29c884ffe6cdd (patch)
tree224cbbf4a1b3a492171aa74c8213b770ac7a41d1 /dev-python
parentdev-python/testscenarios: Port to py39 (diff)
downloadgentoo-8f6d004055cc12413fd9315034d29c884ffe6cdd.tar.gz
gentoo-8f6d004055cc12413fd9315034d29c884ffe6cdd.tar.bz2
gentoo-8f6d004055cc12413fd9315034d29c884ffe6cdd.zip
dev-python/traceback2: Enable tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/traceback2/traceback2-1.4.0.ebuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/dev-python/traceback2/traceback2-1.4.0.ebuild b/dev-python/traceback2/traceback2-1.4.0.ebuild
index ab2013210289..e0ffb58165cc 100644
--- a/dev-python/traceback2/traceback2-1.4.0.ebuild
+++ b/dev-python/traceback2/traceback2-1.4.0.ebuild
@@ -18,4 +18,17 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86
RDEPEND="
dev-python/linecache2[${PYTHON_USEDEP}]"
BDEPEND="
- dev-python/pbr[${PYTHON_USEDEP}]"
+ dev-python/pbr[${PYTHON_USEDEP}]
+ test? ( dev-python/unittest2[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests unittest
+
+src_prepare() {
+ # fails by line numbers on various py3 versions
+ sed -i -e 's:test_context_suppression:_&:' \
+ -e 's:test_format_locals:_&:' \
+ -e 's:test_bad_indentation:_&:' \
+ -e 's:test_encoded_file:_&:' \
+ traceback2/tests/test_traceback.py || die
+ distutils-r1_src_prepare
+}