summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-09-13 11:30:15 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-09-13 11:30:15 +0000
commit4bb0c3e28a6976a903fd5b43f77258d16a90724b (patch)
tree19a88a3b3af18680fe940fb87eb07ee5c63aeaea /dev-python
parentRemove vulnerable version, bug #408881 (diff)
downloadgentoo-2-4bb0c3e28a6976a903fd5b43f77258d16a90724b.tar.gz
gentoo-2-4bb0c3e28a6976a903fd5b43f77258d16a90724b.tar.bz2
gentoo-2-4bb0c3e28a6976a903fd5b43f77258d16a90724b.zip
Disable test that use package installed in wrt #429668 by Diego Elio Pettenò <flameeyes@gentoo.org>. Thanks to Ian Delaney <johneed@hotmail.com> for the patch
(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/apptools/ChangeLog9
-rw-r--r--dev-python/apptools/apptools-4.0.1.ebuild13
-rw-r--r--dev-python/apptools/files/apptools_test.patch15
3 files changed, 32 insertions, 5 deletions
diff --git a/dev-python/apptools/ChangeLog b/dev-python/apptools/ChangeLog
index 9495dd50e7dd..88cd0141edb3 100644
--- a/dev-python/apptools/ChangeLog
+++ b/dev-python/apptools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/apptools
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/apptools/ChangeLog,v 1.15 2012/03/05 10:49:04 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/apptools/ChangeLog,v 1.16 2012/09/13 11:30:15 xarthisius Exp $
+
+ 13 Sep 2012; Kacper Kowalik <xarthisius@gentoo.org>
+ +files/apptools_test.patch, apptools-4.0.1.ebuild:
+ Disable test that use package installed in wrt #429668 by Diego Elio Pettenò
+ <flameeyes@gentoo.org>. Thanks to Ian Delaney <johneed@hotmail.com> for the
+ patch
05 Mar 2012; Justin Lecher <jlec@gentoo.org> apptools-3.4.1.ebuild,
apptools-4.0.0.ebuild, apptools-4.0.1.ebuild:
@@ -76,4 +82,3 @@
15 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+apptools-3.1.0.ebuild:
Initial import
-
diff --git a/dev-python/apptools/apptools-4.0.1.ebuild b/dev-python/apptools/apptools-4.0.1.ebuild
index 32d67a8ef369..219a62788de5 100644
--- a/dev-python/apptools/apptools-4.0.1.ebuild
+++ b/dev-python/apptools/apptools-4.0.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/apptools/apptools-4.0.1.ebuild,v 1.3 2012/03/05 10:49:04 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/apptools/apptools-4.0.1.ebuild,v 1.4 2012/09/13 11:30:15 xarthisius Exp $
EAPI=4
@@ -9,7 +9,7 @@ SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
DISTUTILS_SRC_TEST="nosetests"
-inherit distutils virtualx
+inherit distutils virtualx eutils
DESCRIPTION="Enthought Tool Suite: Application tools"
HOMEPAGE="http://code.enthought.com/projects/app_tools/ http://pypi.python.org/pypi/apptools"
@@ -30,15 +30,22 @@ DEPEND="dev-python/setuptools
>=dev-python/pyface-4
media-fonts/font-cursor-misc
media-fonts/font-misc-misc
+ sci-visualization/mayavi
)"
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}"/${PN}_test.patch
+}
+
src_compile() {
distutils_src_compile
use doc && emake -C docs html
}
src_test() {
- VIRTUALX_COMMAND="distutils_src_test" virtualmake
+ VIRTUALX_COMMAND="python_execute_nosetests -P ${S}/build-${PYTHON_ABI}/lib:${S}" \
+ virtualmake
}
src_install() {
diff --git a/dev-python/apptools/files/apptools_test.patch b/dev-python/apptools/files/apptools_test.patch
new file mode 100644
index 000000000000..ce2d688346ba
--- /dev/null
+++ b/dev-python/apptools/files/apptools_test.patch
@@ -0,0 +1,15 @@
+Disable test that use package installed in ${ROOT}
+
+https://bugs.gentoo.org/show_bug.cgi?id=429668
+
+Patch written by Ian Delaney <johneed@hotmail.com>
+--- apptools/persistence/tests/check_version_registry.py
++++ apptools/persistence/tests/check_version_registry.py
+@@ -39,6 +39,7 @@
+
+
+ class TestVersionRegistry(unittest.TestCase):
++ @unittest.skip("This tests uses installed version")
+ def test_get_version(self):
+ """Test the get_version function."""
+ c = Classic()