diff options
author | 2014-03-30 13:05:38 +0000 | |
---|---|---|
committer | 2014-03-30 13:05:38 +0000 | |
commit | 7cd32fb22ae97ce7206222bdcec8c2715e018754 (patch) | |
tree | 562f5b93c971858f362ded2631ff3bea28bd55bb /dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild | |
parent | version bump, removed old version (diff) | |
download | gentoo-2-7cd32fb22ae97ce7206222bdcec8c2715e018754.tar.gz gentoo-2-7cd32fb22ae97ce7206222bdcec8c2715e018754.tar.bz2 gentoo-2-7cd32fb22ae97ce7206222bdcec8c2715e018754.zip |
edit out broken tests wrt Bug #494054 by eroen
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild')
-rw-r--r-- | dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild b/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild index c21136106d14..5e2ae4920515 100644 --- a/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild +++ b/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild,v 1.8 2013/10/22 11:38:39 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/cherrypy-3.2.2-r1.ebuild,v 1.9 2014/03/30 13:05:38 idella4 Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7,3_2} pypy2_0 ) @@ -21,9 +21,28 @@ IUSE="test" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/nose[${PYTHON_USEDEP}] )" RDEPEND="" - S="${WORKDIR}/${MY_P}" +# Both req'd for test phase +DISTUTILS_IN_SOURCE_BUILD=1 +DISTUTILS_NO_PARALLEL_BUILD=1 + +python_prepare_all() { + sed -e 's:test_file_stream:_&:' -i cherrypy/test/test_static.py || die + distutils-r1_python_prepare_all +} python_test() { + # https://bitbucket.org/cherrypy/cherrypy/issue/1308/testsuite-failures-x-5-test_file_stream + if python_is_python3; then + sed -e 's:test_HTTP11_pipelining:_&:' -i cherrypy/test/test_conn.py || die + elif [[ "${EPYTHON}" == "pypy-c2.0" || "${EPYTHON}" == "pypy-c" ]]; then + einfo "done" + sed -e 's:testEscapedOutput:_&:' \ + -e 's:testNormalReturn:_&:' \ + -e 's:testTracebacks:_&:' \ + -e 's:testNormalYield:_&:' \ + -i cherrypy/test/test_logging.py || die + fi + # This really doesn't sit well with multiprocessing nosetests < /dev/tty || die "Testing failed with ${EPYTHON}" } |