@@ -394,10 +394,11 @@ jython = sys.platform.startswith("java") import os import types import traceback import signal +import warnings # Exception classes used by this module. class CalledProcessError(Exception): """This exception is raised when a process run by check_call() or check_output() returns a non-zero exit status. @@ -709,11 +710,10 @@ if jython: shell_command[0] = executable _shell_command = shell_command return if not _shell_command: - import warnings warnings.warn('Unable to determine _shell_command for ' 'underlying os: %s' % os._name, RuntimeWarning, 3) _setup_platform() @@ -1381,11 +1381,12 @@ class Popen(object): raise ValueError("Unsupported signal: {}".format(sig)) def terminate(self): """Terminates the process """ - _subprocess.TerminateProcess(self._handle, 1) + #_subprocess.TerminateProcess(self._handle, 1) + warnings.warn('Subprocess termination not yet implemented. Subprocess should exit during interpreter shutdown.', RuntimeWarning) kill = terminate else: #