[py-svn] r51994 - py/branch/guido-svn-auth/py/misc/testing

guido at codespeak.net guido at codespeak.net
Sat Mar 1 14:00:00 CET 2008


Author: guido
Date: Sat Mar  1 13:59:59 2008
New Revision: 51994

Modified:
   py/branch/guido-svn-auth/py/misc/testing/test_oskill.py
Log:
disabled killproc tests on win32 versions that don't have the taskkill binary

Modified: py/branch/guido-svn-auth/py/misc/testing/test_oskill.py
==============================================================================
--- py/branch/guido-svn-auth/py/misc/testing/test_oskill.py	(original)
+++ py/branch/guido-svn-auth/py/misc/testing/test_oskill.py	Sat Mar  1 13:59:59 2008
@@ -4,6 +4,10 @@
 from py.__.misc.killproc import killproc
 
 def test_win_killsubprocess():
+    if sys.platform == 'win32' and not py.path.local.sysfind('taskkill'):
+        py.test.skip("you\'re using an older version of windows, which "
+                     "doesn\'t support 'taskkill' - py.misc.killproc is not "
+                     "available")
     tmp = py.test.ensuretemp("test_win_killsubprocess")
     t = tmp.join("t.py")
     t.write("import time ; time.sleep(100)")



More information about the pytest-commit mailing list