From: Michał Górny Date: Fri, 24 Apr 2020 14:25:18 +0000 (+0200) Subject: dev-python/twisted: Skip tests failing on py2.7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=206c053e8226dd326120d25e6ce8392c16cf570d;p=gentoo.git dev-python/twisted: Skip tests failing on py2.7 Signed-off-by: Michał Górny --- diff --git a/dev-python/twisted/twisted-19.10.0.ebuild b/dev-python/twisted/twisted-19.10.0.ebuild index 540e74f97ed7..1112e8b1d49f 100644 --- a/dev-python/twisted/twisted-19.10.0.ebuild +++ b/dev-python/twisted/twisted-19.10.0.ebuild @@ -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 }