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:
parent
c10f0c2c36
commit
cbb4c0dadc
|
@ -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:
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue