summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2010-05-03 20:54:31 +0000
committerAndrey Grozin <grozin@gentoo.org>2010-05-03 20:54:31 +0000
commit9731a7158a9fade711c5e52d967815e1b848331b (patch)
tree5ce8fa8f67993c97eeaad5537f62fa94281f08a8 /dev-python/execnet/files
parentVersion bump KDE 4.4.3 (diff)
downloadgentoo-2-9731a7158a9fade711c5e52d967815e1b848331b.tar.gz
gentoo-2-9731a7158a9fade711c5e52d967815e1b848331b.tar.bz2
gentoo-2-9731a7158a9fade711c5e52d967815e1b848331b.zip
Improved test-nice patch
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'dev-python/execnet/files')
-rw-r--r--dev-python/execnet/files/execnet-1.0.6-test-nice.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/execnet/files/execnet-1.0.6-test-nice.patch b/dev-python/execnet/files/execnet-1.0.6-test-nice.patch
new file mode 100644
index 000000000000..6119fcb9cd0a
--- /dev/null
+++ b/dev-python/execnet/files/execnet-1.0.6-test-nice.patch
@@ -0,0 +1,17 @@
+diff -r -U1 execnet-1.0.6.orig/testing/test_xspec.py execnet-1.0.6/testing/test_xspec.py
+--- execnet-1.0.6.orig/testing/test_xspec.py 2010-04-21 16:19:48.000000000 +0200
++++ execnet-1.0.6/testing/test_xspec.py 2010-05-03 22:12:56.000000000 +0200
+@@ -72,2 +72,8 @@
+ def test_popen_nice(self):
++ import os
++ localnice = os.nice(0)
++ MAXNICE = 19
++ nice = localnice+5
++ if nice > MAXNICE:
++ nice = MAXNICE
+ gw = execnet.makegateway("popen//nice=5")
+@@ -81,3 +87,3 @@
+ if remotenice is not None:
+- assert remotenice == 5
++ assert remotenice == nice
+