use taskkill cmdline for jython/win32 but skip test on jython because it does not return a subprocess PID

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-04-21 06:23:19 -07:00
parent c10f0c2c36
commit cbb4c0dadc
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import py
import os, sys
if sys.platform == "win32":
if sys.platform == "win32" or getattr(os, '_name', '') == 'nt':
try:
import ctypes
except ImportError:

View File

@ -1,6 +1,7 @@
import py, sys
@py.test.mark.skipif("sys.platform.startswith('java')")
def test_kill(tmpdir):
subprocess = py.test.importorskip("subprocess")
t = tmpdir.join("t.py")