1 |
commit: 8f6d004055cc12413fd9315034d29c884ffe6cdd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 14:54:14 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f6d0040 |
7 |
|
8 |
dev-python/traceback2: Enable tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/traceback2/traceback2-1.4.0.ebuild | 15 ++++++++++++++- |
13 |
1 file changed, 14 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/traceback2/traceback2-1.4.0.ebuild b/dev-python/traceback2/traceback2-1.4.0.ebuild |
16 |
index ab201321028..e0ffb58165c 100644 |
17 |
--- a/dev-python/traceback2/traceback2-1.4.0.ebuild |
18 |
+++ b/dev-python/traceback2/traceback2-1.4.0.ebuild |
19 |
@@ -18,4 +18,17 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 |
20 |
RDEPEND=" |
21 |
dev-python/linecache2[${PYTHON_USEDEP}]" |
22 |
BDEPEND=" |
23 |
- dev-python/pbr[${PYTHON_USEDEP}]" |
24 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
25 |
+ test? ( dev-python/unittest2[${PYTHON_USEDEP}] )" |
26 |
+ |
27 |
+distutils_enable_tests unittest |
28 |
+ |
29 |
+src_prepare() { |
30 |
+ # fails by line numbers on various py3 versions |
31 |
+ sed -i -e 's:test_context_suppression:_&:' \ |
32 |
+ -e 's:test_format_locals:_&:' \ |
33 |
+ -e 's:test_bad_indentation:_&:' \ |
34 |
+ -e 's:test_encoded_file:_&:' \ |
35 |
+ traceback2/tests/test_traceback.py || die |
36 |
+ distutils-r1_src_prepare |
37 |
+} |