dev-python/twisted: Skip tests failing on py2.7
authorMichał Górny <mgorny@gentoo.org>
Fri, 24 Apr 2020 14:25:18 +0000 (16:25 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 24 Apr 2020 14:39:10 +0000 (16:39 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/twisted/twisted-19.10.0.ebuild

index 540e74f97ed70f400bccd1b198a8789c5df94d46..1112e8b1d49f8a4f7a339dedb21e3b7ddaff0d23 100644 (file)
@@ -82,6 +82,10 @@ DEPEND="
 S=${WORKDIR}/${TWISTED_P}
 
 python_prepare_all() {
+       # upstream test for making releases; not very useful and requires
+       # sphinx (including on py2)
+       rm src/twisted/python/test/test_release.py || die
+
        # puts system in EMFILE state, then the exception handler may fail
        # trying to open more files due to some gi magic
        sed -e '/SKIP_EMFILE/s:None:"Fails on non-pristine systems":' \
@@ -107,6 +111,12 @@ python_prepare_all() {
        sed -e 's:test_getTimezoneOffsetWithoutDaylightSavingTime:_&:' \
                -i src/twisted/test/test_log.py || die
 
+       # TODO: failures specific to Python 2
+       sed -e 's:testLookupProcNetTcp:_&:' \
+               -i src/twisted/test/test_ident.py || die
+       sed -e 's:test_loggingFactoryOpensLogfileAutomatically:_&:' \
+               -i src/twisted/test/test_policies.py || die
+
        distutils-r1_python_prepare_all
 }