Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/twisted/
Date: Fri, 24 Apr 2020 14:39:19
Message-Id: 1587739150.206c053e8226dd326120d25e6ce8392c16cf570d.mgorny@gentoo
1 commit: 206c053e8226dd326120d25e6ce8392c16cf570d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 14:25:18 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 14:39:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=206c053e
7
8 dev-python/twisted: Skip tests failing on py2.7
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/twisted/twisted-19.10.0.ebuild | 10 ++++++++++
13 1 file changed, 10 insertions(+)
14
15 diff --git a/dev-python/twisted/twisted-19.10.0.ebuild b/dev-python/twisted/twisted-19.10.0.ebuild
16 index 540e74f97ed..1112e8b1d49 100644
17 --- a/dev-python/twisted/twisted-19.10.0.ebuild
18 +++ b/dev-python/twisted/twisted-19.10.0.ebuild
19 @@ -82,6 +82,10 @@ DEPEND="
20 S=${WORKDIR}/${TWISTED_P}
21
22 python_prepare_all() {
23 + # upstream test for making releases; not very useful and requires
24 + # sphinx (including on py2)
25 + rm src/twisted/python/test/test_release.py || die
26 +
27 # puts system in EMFILE state, then the exception handler may fail
28 # trying to open more files due to some gi magic
29 sed -e '/SKIP_EMFILE/s:None:"Fails on non-pristine systems":' \
30 @@ -107,6 +111,12 @@ python_prepare_all() {
31 sed -e 's:test_getTimezoneOffsetWithoutDaylightSavingTime:_&:' \
32 -i src/twisted/test/test_log.py || die
33
34 + # TODO: failures specific to Python 2
35 + sed -e 's:testLookupProcNetTcp:_&:' \
36 + -i src/twisted/test/test_ident.py || die
37 + sed -e 's:test_loggingFactoryOpensLogfileAutomatically:_&:' \
38 + -i src/twisted/test/test_policies.py || die
39 +
40 distutils-r1_python_prepare_all
41 }