summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2010-02-23 07:01:02 +0000
committerAndrey Grozin <grozin@gentoo.org>2010-02-23 07:01:02 +0000
commit8ca914fa839861e999882447e0ef57ee50dc4c90 (patch)
tree27f9634b73e630074f2bbb46c1f4f352b58e3f5e /dev-python/execnet
parentMarked ~ppc64. (diff)
downloadgentoo-2-8ca914fa839861e999882447e0ef57ee50dc4c90.tar.gz
gentoo-2-8ca914fa839861e999882447e0ef57ee50dc4c90.tar.bz2
gentoo-2-8ca914fa839861e999882447e0ef57ee50dc4c90.zip
Fixed test with niceness!=0, bug #301417
(Portage version: 2.2_rc63/cvs/Linux i686)
Diffstat (limited to 'dev-python/execnet')
-rw-r--r--dev-python/execnet/ChangeLog6
-rw-r--r--dev-python/execnet/execnet-1.0.5.ebuild11
-rw-r--r--dev-python/execnet/files/execnet-1.0.5-test-nice.patch15
3 files changed, 29 insertions, 3 deletions
diff --git a/dev-python/execnet/ChangeLog b/dev-python/execnet/ChangeLog
index 48673fc780d5..b02857e71368 100644
--- a/dev-python/execnet/ChangeLog
+++ b/dev-python/execnet/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/execnet
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/execnet/ChangeLog,v 1.4 2010/02/08 13:16:16 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/execnet/ChangeLog,v 1.5 2010/02/23 07:01:01 grozin Exp $
+
+ 23 Feb 2010; Andrey Grozin <grozin@gentoo.org> execnet-1.0.5.ebuild,
+ +files/execnet-1.0.5-test-nice.patch:
+ Fixed test with niceness!=0, bug #301417
*execnet-1.0.5 (08 Feb 2010)
diff --git a/dev-python/execnet/execnet-1.0.5.ebuild b/dev-python/execnet/execnet-1.0.5.ebuild
index 84fe7aa46c96..4b62d70ef666 100644
--- a/dev-python/execnet/execnet-1.0.5.ebuild
+++ b/dev-python/execnet/execnet-1.0.5.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/execnet/execnet-1.0.5.ebuild,v 1.1 2010/02/08 13:16:16 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/execnet/execnet-1.0.5.ebuild,v 1.2 2010/02/23 07:01:01 grozin Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
-inherit distutils
+inherit distutils eutils
DESCRIPTION="Rapid multi-Python deployment"
HOMEPAGE="http://codespeak.net/execnet/ http://pypi.python.org/pypi/execnet"
@@ -21,6 +21,13 @@ DEPEND="dev-python/setuptools
test? ( >=dev-python/py-1.1.1 )"
RDEPEND=""
+src_prepare() {
+ distutils_src_prepare
+
+ # fixing test with nice, bug #301417
+ epatch "${FILESDIR}"/${P}-test-nice.patch
+}
+
src_compile() {
distutils_src_compile
if use doc; then
diff --git a/dev-python/execnet/files/execnet-1.0.5-test-nice.patch b/dev-python/execnet/files/execnet-1.0.5-test-nice.patch
new file mode 100644
index 000000000000..84143f3bb31d
--- /dev/null
+++ b/dev-python/execnet/files/execnet-1.0.5-test-nice.patch
@@ -0,0 +1,15 @@
+ôÏÌØËÏ × execnet-1.0.5//testing: __init__.pyc
+diff -r -U1 execnet-1.0.5.orig//testing/test_xspec.py execnet-1.0.5//testing/test_xspec.py
+--- execnet-1.0.5.orig//testing/test_xspec.py 2009-12-11 15:05:52.000000000 +0100
++++ execnet-1.0.5//testing/test_xspec.py 2010-02-23 13:17:51.000000000 +0100
+@@ -72,2 +72,4 @@
+ def test_popen_nice(self):
++ import os
++ localnice=os.nice(0)
+ gw = execnet.makegateway("popen//nice=5")
+@@ -81,3 +83,3 @@
+ if remotenice is not None:
+- assert remotenice == 5
++ assert remotenice == localnice+5
+
+ôÏÌØËÏ × execnet-1.0.5//testing: test_xspec.pyc