[execnet-dev] test failure if tested with niceness!=0

Andrey G. Grozin A.G.Grozin at inp.nsk.su
Tue Feb 23 08:40:35 CET 2010


Fix attached

Andrey
-------------- next part --------------
?????? ? 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


More information about the execnet-dev mailing list