diff options
author | 2010-05-03 20:54:31 +0000 | |
---|---|---|
committer | 2010-05-03 20:54:31 +0000 | |
commit | 41054b934c08126cda146965167f804ddc94191f (patch) | |
tree | 7ec9a8b8ae62cb132dc4cd40856d501c3ac93769 /dev-python/execnet/files | |
parent | old (diff) | |
download | historical-41054b934c08126cda146965167f804ddc94191f.tar.gz historical-41054b934c08126cda146965167f804ddc94191f.tar.bz2 historical-41054b934c08126cda146965167f804ddc94191f.zip |
Improved test-nice patch
Package-Manager: portage-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.patch | 17 |
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 + |