-diff -ur PyProtocols.orig/src/protocols/tests/__init__.py PyProtocols/src/protocols/tests/__init__.py
---- src/protocols/tests/__init__.py 2007-04-25 12:15:46.000000000 +0800
-+++ src/protocols/tests/__init__.py 2013-04-10 19:22:28.720647271 +0800
+--- a/src/protocols/tests/__init__.py
++++ b/src/protocols/tests/__init__.py
@@ -256,22 +256,6 @@
makeSuite(GenerationTests,'check'),
]
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
+
PYTHON_COMPAT=( python2_7 )
-inherit distutils-r1 flag-o-matic eutils
+inherit distutils-r1 flag-o-matic
MY_PN="PyProtocols"
MY_P="${MY_PN}-${PV/_pre/a0dev_r}"
S="${WORKDIR}/${MY_PN}"
+PATCHES=( "${FILESDIR}"/SkipTests.patch )
DOCS=( CHANGES.txt README.txt UPGRADING.txt )
python_prepare_all() {
# Rm peripheral & rogue failing tests
rm -f src//protocols/tests/{test_twisted.py,test_zope.py} || die
- epatch "${FILESDIR}"/SkipTests.patch
+
+ distutils-r1_python_prepare_all
}
python_configure_all() {
}
python_test() {
- esetup.py test && einfo "Tests passed under ${EPYTHON}" \
- || die "Tests failed under ${EPYTHON}"
+ esetup.py test || die "Tests failed under ${EPYTHON}"
}