summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-29 22:33:28 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-29 22:33:28 +0000
commitf4e3d9889e207104093c68e290da694caaa979ba (patch)
treea15848827f485d00e5f467f6f18fc09557e983f2 /dev-python/twisted-web/twisted-web-10.2.0.ebuild
parentarm stable, bug #344827 (diff)
downloadgentoo-2-f4e3d9889e207104093c68e290da694caaa979ba.tar.gz
gentoo-2-f4e3d9889e207104093c68e290da694caaa979ba.tar.bz2
gentoo-2-f4e3d9889e207104093c68e290da694caaa979ba.zip
Avoid test failures with root permissions (bug #349964).
(Portage version: 2.2.0_alpha10_p17/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/twisted-web/twisted-web-10.2.0.ebuild')
-rw-r--r--dev-python/twisted-web/twisted-web-10.2.0.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-python/twisted-web/twisted-web-10.2.0.ebuild b/dev-python/twisted-web/twisted-web-10.2.0.ebuild
index dacc17a1aea6..1bb3a3e215d6 100644
--- a/dev-python/twisted-web/twisted-web-10.2.0.ebuild
+++ b/dev-python/twisted-web/twisted-web-10.2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-10.2.0.ebuild,v 1.2 2010/12/28 01:24:24 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-10.2.0.ebuild,v 1.3 2010/12/29 22:33:28 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
@@ -8,7 +8,7 @@ SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
MY_PACKAGE="Web"
-inherit eutils twisted versionator
+inherit twisted versionator
DESCRIPTION="Twisted web server, programmable in Python"
@@ -23,5 +23,10 @@ PYTHON_MODNAME="twisted/plugins twisted/web"
src_prepare() {
distutils_src_prepare
- epatch "${FILESDIR}/${PN}-0.5.0-root-skip.patch"
+
+ if [[ "${EUID}" -eq 0 ]]; then
+ # Disable tests failing with root permissions.
+ sed -e "s/test_forbiddenResource/_&/" -i twisted/web/test/test_static.py
+ sed -e "s/testDownloadPageError3/_&/" -i twisted/web/test/test_webclient.py
+ fi
}